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>
Wed, 26 Oct 2011 20:32:20 +0000 (16:32 -0400)
commit66fd8ad5100b5003046aa744a4f12fa31bb831f9
treec71aa6ff8b5c4c2919b93630a2315017f4610986
parent08a7e1dfaa63bf5132b5b7231fcf9a33473c78f5
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