From: lintao Date: Thu, 9 Oct 2014 08:56:35 +0000 (+0800) Subject: mmc: only ctrl_all_reset if slot state really changed X-Git-Tag: firefly_0821_release~4604 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=27dc823e;p=firefly-linux-kernel-4.4.55.git mmc: only ctrl_all_reset if slot state really changed --- diff --git a/drivers/mmc/host/rk_sdmmc.c b/drivers/mmc/host/rk_sdmmc.c index 553d780e0e24..cc1272daf03d 100755 --- a/drivers/mmc/host/rk_sdmmc.c +++ b/drivers/mmc/host/rk_sdmmc.c @@ -2957,7 +2957,6 @@ static void dw_mci_work_routine_card(struct work_struct *work) int present; present = dw_mci_get_cd(mmc); - dw_mci_ctrl_all_reset(host); /* Stop edma when rountine card triggered */ if(cpu_is_rk3036() || cpu_is_rk312x()) @@ -2970,6 +2969,7 @@ static void dw_mci_work_routine_card(struct work_struct *work) MMC_DBG_BOOT_FUNC(mmc, " The card is %s. ===!!!!!!==[%s]\n", present ? "inserted" : "removed.", mmc_hostname(mmc)); + dw_mci_ctrl_all_reset(host); rk_send_wakeup_key();//wake up system spin_lock_bh(&host->lock);