mmc: core: Don't hold wake lock while detect work is in progress
It is not necessary to hold wake lock and block suspend while
MMC detect work is in progress. If a card is inserted during
device suspend, wait for card to be detected in pm notifiers
before cancelling the detect work. If a card state change is
detected, hold wake lock for 500ms during which userspace be
able to respond to media change events.
Change-Id: If74381dfdf7d4b20e10f7bd10d29662ddeef97b2
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
1 file changed