]> git.baikalelectronics.ru Git - kernel.git/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)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 16 Mar 2017 14:24:28 +0000 (15:24 +0100)
commitd6b414104e42fd9a8ece66a6e00f49dce6088d50
tree223dc5e190c84ccf0e6876595713b06f4c0295f7
parent2705dc233cc9f54d4705946e228bb29aed48c008
mmc: sdhci-of-at91: Support external regulators

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>
Cc: stable@vger.kernel.org #4.9+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c