]> git.itanic.dy.fi Git - linux-stable/commit
mmc: sdhci-of-at91: Support external regulators
authorRomain Izard <romain.izard.pro@gmail.com>
Thu, 9 Mar 2017 15:18:20 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2017 07:44:06 +0000 (09:44 +0200)
commit116418547216d35b83475ed1bfabd7419827a414
treefd6a8b08d267f2539168191861d0560974b5a1bf
parenta0c48115cd2343231585f2f5e609b2ac9aa4e0af
mmc: sdhci-of-at91: Support external regulators

commit 2ce0c7b65505e0d915e99389cced45b478dc935d upstream.

The SDHCI controller in the SAMA5D2 chip requires a valid voltage set
in the power control register, otherwise commands will fail with a
timeout error.

When using the regulator framework to specify the regulator used by the
mmc device, the voltage is not configured, and it is not possible to use
the connected device.

Implement a custom 'set_power' function for this specific hardware, that
configures the voltage in the register in all cases.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-at91.c