]> 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)
commitc7009213c3a3e00d24c460012877c25d849bc6fb
treec71aa6ff8b5c4c2919b93630a2315017f4610986
parent9c3b0cd098b79a8a0ff1ad742b632e04d42debb3
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