diff options
author | Ohad Ben-Cohen <[email protected]> | 2010-10-02 13:54:13 +0200 |
---|---|---|
committer | Chris Ball <[email protected]> | 2010-10-23 21:11:19 +0800 |
commit | ed2a9785942b0986ac858f3f48d7fc5f7c7183de (patch) | |
tree | 31853b8ba7ab7ee06fbd5bbf08c9e94fca091631 /lib/mpi/mpi-inline.h | |
parent | 87973ba27b751353e2915cb3aa5c0e0dc6a79a4f (diff) |
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 <[email protected]>
Tested-by: Luciano Coelho <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions