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

Skip to content
Commit 462d007a authored by Sujith Reddy Thumma's avatar Sujith Reddy Thumma Committed by Stephen Boyd
Browse files

mmc: core: Claim host while freeing card



When SD/MMC card is removed without unmounting and
then reinserted again while gendisk is freed. Partition
invalidation and deletion may take more than 10secs during
which SDCC controller can suspend due to runtime pm functionality.
Once the block layer activity is done it claims host to detach card
from MMC bus which triggers SDCC resume. As the host->card is
NULL  already there is a BUG_ON hit in mmc_sd_resume(). Fix this
by claiming host even before we free host->card.

CRs-Fixed: 284262
Signed-off-by: default avatarSujith Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit 5eed6a9778440ef512f597b43368337a7ef9438b)

Change-Id: I6b58aab1865a93a025fd9912200ab0beea21be92
Signed-off-by: default avatarShruthi Krishna <skrish@codeaurora.org>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
parent f303b2bb
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