]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-pci: add runtime pm support
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 3 Oct 2011 12:33:34 +0000 (15:33 +0300)
committerChris Ball <cjb@laptop.org>
Mon, 10 Oct 2011 22:06:44 +0000 (18:06 -0400)
commitcf59af30dffcbab8be4007cf76ec9ffd016caad2
tree7de531ac7903b6445e8765b8b6e5398b9d1b1f44
parent582652f6b5c04051fb96211d692c72500d039b0c
mmc: sdhci-pci: add runtime pm support

Ths patch allows runtime PM for sdhci-pci, runtime suspending after
inactivity of 50ms and ensuring runtime resume before SDHC registers
are accessed.  During runtime suspend, interrupts are masked.
The host controller state is restored at runtime resume.

For Medfield, the host controller's card detect mechanism is
supplanted by an always-on GPIO which provides for card detect wake-up.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pci.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h
include/linux/mmc/sdhci.h