]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/mmc/core/core.c
mmc: Fix re-probing with PM_POST_RESTORE notification
[mv-sheeva.git] / drivers / mmc / core / core.c
index 8f86d702e46eebce56bdb00f6f22d4d6b8205100..57dcf8fa774a7302be1fbb6f0104d6320c6287c8 100644 (file)
@@ -1559,7 +1559,7 @@ void mmc_stop_host(struct mmc_host *host)
 
        if (host->caps & MMC_CAP_DISABLE)
                cancel_delayed_work(&host->disable);
-       cancel_delayed_work(&host->detect);
+       cancel_delayed_work_sync(&host->detect);
        mmc_flush_scheduled_work();
 
        /* clear pm flags now and let card drivers set them as needed */
@@ -1773,6 +1773,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
 
        case PM_POST_SUSPEND:
        case PM_POST_HIBERNATION:
+       case PM_POST_RESTORE:
 
                spin_lock_irqsave(&host->lock, flags);
                host->rescan_disable = 0;