mmc: core: Fix hangs related to insert/remove of cards
[~shefty/rdma-dev.git] / drivers / mmc / core / sd.c
index 0370e03e314253f027a36aa994591ea2817f0826..4c281a4bf0589d6f8393f16e38e341bc31ffd45d 100644 (file)
@@ -1043,6 +1043,7 @@ static void mmc_sd_detect(struct mmc_host *host)
 
                mmc_claim_host(host);
                mmc_detach_bus(host);
 
                mmc_claim_host(host);
                mmc_detach_bus(host);
+               mmc_power_off(host);
                mmc_release_host(host);
        }
 }
                mmc_release_host(host);
        }
 }