mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "mmc: core: Set host->bus_refs properly when card is set as corrupted"
This commit is contained in:
commit
88c9d046cc
1 changed files with 5 additions and 5 deletions
|
|
@ -3154,11 +3154,6 @@ void mmc_rescan(struct work_struct *work)
|
|||
if (host->bus_ops && !host->bus_dead)
|
||||
host->bus_ops->detect(host);
|
||||
|
||||
#if defined(CONFIG_SDC_QTI)
|
||||
if (host->corrupted_card)
|
||||
return;
|
||||
#endif
|
||||
|
||||
host->detect_change = 0;
|
||||
|
||||
/*
|
||||
|
|
@ -3180,6 +3175,11 @@ void mmc_rescan(struct work_struct *work)
|
|||
*/
|
||||
mmc_bus_put(host);
|
||||
|
||||
#if defined(CONFIG_SDC_QTI)
|
||||
if (host->corrupted_card)
|
||||
goto out;
|
||||
#endif
|
||||
|
||||
mmc_claim_host(host);
|
||||
if (mmc_card_is_removable(host) && host->ops->get_cd &&
|
||||
host->ops->get_cd(host) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue