]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-esdhc: break out early if clock is 0
authorShawn Guo <shawn.guo@linaro.org>
Wed, 22 Aug 2012 15:10:01 +0000 (23:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:29:54 +0000 (10:29 -0700)
commite66a381518f9ebf98cdc583d20ae706aa5d1dc28
treead4e03d6137580beaeabd4ae5cd18ffc276bd806
parent3a4781e12d0e6264c76bfd110783321450138169
mmc: sdhci-esdhc: break out early if clock is 0

commit 74f330bceaa7b88d06062e1cac3d519a3dfc041e upstream.

Since commit 30832ab56 ("mmc: sdhci: Always pass clock request value
zero to set_clock host op") was merged, esdhc_set_clock starts hitting
"if (clock == 0)" where ESDHC_SYSTEM_CONTROL has been operated.  This
causes SDHCI card-detection function being broken.  Fix the regression
by moving "if (clock == 0)" above ESDHC_SYSTEM_CONTROL operation.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-esdhc.h