mmc: core: Don't hold wake lock while detect work is in progress
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 <d09719b174b1d7232763de9bbeaca66508591b55@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas