]> git.baikalelectronics.ru Git - kernel.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>
Wed, 26 Oct 2011 20:32:20 +0000 (16:32 -0400)
commitdf1941aa7884d31fbe97748361f60d8087583b34
treec71aa6ff8b5c4c2919b93630a2315017f4610986
parentcebe4af9794e5b0194cce109311615729f4515c3
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