From: Ohad Ben-Cohen Date: Sat, 2 Oct 2010 11:54:13 +0000 (+0200) Subject: mmc: sdio: support suspend/resume while runtime suspended X-Git-Tag: v2.6.37-rc1~65^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed2a9785942b0986ac858f3f48d7fc5f7c7183de;p=pandora-kernel.git 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 Tested-by: Luciano Coelho Signed-off-by: Chris Ball --- Reading git-diff-tree failed