mmc: remove useless rescan for io function
authorlintao <lintao@rock-chips.com>
Fri, 26 Sep 2014 04:38:20 +0000 (12:38 +0800)
committerlintao <lintao@rock-chips.com>
Fri, 26 Sep 2014 04:38:35 +0000 (12:38 +0800)
drivers/mmc/host/rk_sdmmc.c

index 310b591080ea499f19db266e8799b6693578d9b0..cd78befd129a684e87d2fadfc4c839bbed50e4dd 100755 (executable)
@@ -4202,7 +4202,10 @@ int dw_mci_resume(struct dw_mci *host)
                        dw_mci_setup_bus(slot, true);
                }
        }
-       schedule_delayed_work(&host->resume_rescan, msecs_to_jiffies(2000));
+
+       if((host->mmc->restrict_caps & RESTRICT_CARD_TYPE_SD))
+               schedule_delayed_work(&host->resume_rescan, msecs_to_jiffies(2000));
+
        return 0;
 }
 EXPORT_SYMBOL(dw_mci_resume);