mmc: sdhci-s3c: fix missing clock for gpio card-detect
From: Heiko Stuebner <heiko@...> Date: Sun, 18 Nov 2012 19:22:05 +0100
Commit-Message
Commit 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@...>
Patch-Comment
drivers/mmc/host/sdhci-s3c.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) This _should_ go into 3.7 because currently it causes a regression there. Nevertheless it applies to both 3.7-rc6 and linux-next. I also tried to use pm_runtime_get_sync (and _put) there, but it didn't seem to work and the clock was still missing. With the changes in this patch, the gpio-card-detect works again on my machine - all of insert, remove and reinsert.
Statistics
- 7 lines added
- 0 lines removed