summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci.c
diff options
context:
space:
mode:
authorOhad Ben-Cohen2010-10-02 13:54:13 +0200
committerChris Ball2010-10-23 15:11:19 +0200
commited2a9785942b0986ac858f3f48d7fc5f7c7183de (patch)
tree31853b8ba7ab7ee06fbd5bbf08c9e94fca091631 /drivers/mmc/host/sdhci-pci.c
parentmmc: sdio: ensure mmc_sdio_detect is powered (diff)
downloadkernel-qcow2-linux-ed2a9785942b0986ac858f3f48d7fc5f7c7183de.tar.gz
kernel-qcow2-linux-ed2a9785942b0986ac858f3f48d7fc5f7c7183de.tar.xz
kernel-qcow2-linux-ed2a9785942b0986ac858f3f48d7fc5f7c7183de.zip
mmc: sdio: support suspend/resume while runtime suspended
Bring SDIO devices back to full power before their suspend handler is invoked. Doing so ensures that SDIO suspend/resume semantics are maintained (drivers still get to decide whether their card should be removed or kept during system suspend, and at what power state), and that SDIO suspend/resume execution paths are unchanged. This is achieved by resuming a runtime-suspended SDIO device in its ->prepare() PM callback (similary to the PCI subsystem). Since the PM core always increments the run-time usage counter before calling the ->prepare() callback and decrements it after calling the ->complete() callback, it is guaranteed that when the system will come out of suspend, our device's power state will reflect its runtime PM usage counter. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Tested-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci.c')
0 files changed, 0 insertions, 0 deletions