mmc: sdhci-iproc: Fix vmmc regulators on iProc
authorPhil Elwell <phil@raspberrypi.org>
Fri, 2 Aug 2019 14:20:11 +0000 (15:20 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:18 +0000 (16:33 +0100)
commitb9dbb049e53c5e1463fab94276cd0f034b7a69a3
treeaa1523cee7cd71f327f53a9637e23ca21238927f
parent042d6a82d30948783aa7e5f4bf7bdfa6542fa96e
mmc: sdhci-iproc: Fix vmmc regulators on iProc

The Linux support for controlling card power via regulators appears to
be contentious. I would argue that the default behaviour is contrary to
the SDHCI spec - turning off the power writes a reserved value to the
SD Bus Voltage Select field of the Power Control Register, which
seems to kill the Arasan/iProc controller - but fortunately there is a
hook in sdhci_ops to override the behaviour. Borrow the implementation
from sdhci_arasan_set_power.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/mmc/host/sdhci-iproc.c