]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: sdhci-of-arasan: add sdhci_arasan_voltage_switch for arasan, 5.1
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 30 Sep 2016 06:19:00 +0000 (14:19 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Oct 2016 12:01:33 +0000 (14:01 +0200)
commit8a3bee9b13824147dd15efb2993fb1b19c0e5555
treed160ce9d9f5668406767d7bac34e55cda18bb204
parent4f25580fb84d934d7ecffa3c0aa8f10f7e23af92
mmc: sdhci-of-arasan: add sdhci_arasan_voltage_switch for arasan, 5.1

Per the vendor's requirement, we shouldn't do any setting for
1.8V Signaling Enable, otherwise the interaction/behaviour between
phy and controller will be undefined. Mostly it works fine if we do
that, but we still see failures. Anyway, let's fix it to meet the
vendor's requirement. The error log looks like:

 [   93.405085] mmc1: unexpected status 0x800900 after switch
 [   93.408474] mmc1: switch to bus width 1 failed
 [   93.408482] mmc1: mmc_select_hs200 failed, error -110
 [   93.408492] mmc1: error -110 during resume (card was removed?)
 [   93.408705] PM: resume of devices complete after 213.453 msecs

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c