mmc: sdhci-of-esdhc: disable SD clock for clock value 0
authoryangbo lu <yangbo.lu@nxp.com>
Thu, 21 Sep 2017 08:43:31 +0000 (16:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:33 +0000 (15:42 +0100)
commitffe075e233bb8049ba7d3e362b37bc97ecf7e6fa
treeef572a4c78e034d4bf9e0e765c1255083f162293
parent11785a9ece1b10d43156ae79e24f709053644bc5
mmc: sdhci-of-esdhc: disable SD clock for clock value 0

commit dd3f6983b4a468efca9e8caa0e2b4aa20946d801 upstream.

SD clock should be disabled for clock value 0. It's not
right to just return. This may cause failure of signal
voltage switching.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-esdhc.c