]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mmc: sdhci-s3c: fix missing clock for gpio card-detect
authorHeiko Stübner <heiko@sntech.de>
Sun, 18 Nov 2012 18:50:05 +0000 (19:50 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:54:33 +0000 (13:54 -0500)
commitfe007c02f9659f5c0ae6f3ceaf45076df92cc88e
treeb874b12eb1d26a7dd0837e0b69fb5b41bcffbba4
parent0aa55c2367f082876f92660312214cd20c6a024b
mmc: sdhci-s3c: fix missing clock for gpio card-detect

2abeb5c5ded2 ("Add clk_(enable/disable) in runtime suspend/resume")
added the capability to stop the clocks when the device is runtime
suspended, but forgot to handle the case of the card-detect using
an external gpio.

Therefore in the case that runtime-pm is enabled, start the io-clock
when a card is inserted and stop it again once it is removed.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c