Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ca4e2280 authored by Krishna Konda's avatar Krishna Konda Committed by Stephen Boyd
Browse files

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: default avatarKrishna Konda <kkonda@codeaurora.org>
parent 7103778f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment