]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 26 Nov 2012 00:43:54 +0000 (19:43 -0500)
commita8083a8ce1f5db92f44d4a4f7bf9d6d377056180
tree4b45ad3866b854a152cdde12c1cbc7d3af18daab
parent8af7c8ca44eec27a4fa9f1aafaed251326e43069
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