mmc: core: use mmc_try_claim_host in suspend path
mmc_cache_ctrl is called during the suspend path and it used
mmc_claim_host which is a blocking call and the device never
really suspends as it waits for the host to be available.
This also leads to race conditions during runtime power
management operation, for example, runtime suspend can start
while the device is being runtime resumed. So in order to
prevent this, mmc_try_claim_host should be used during
suspend path, which is non-blocking.
Change-Id: I01aa390964b2bedd91baa4b67fae6b08e9ba8e49
Signed-off-by:
Krishna Konda <kkonda@codeaurora.org>
Loading
Please register or sign in to comment