[RAMEN9610-13390][COMMON] mmc: dw_mmc: Change card_detect_delay
authordukhyun kwon <d_hyun.kwon@samsung.com>
Tue, 21 Aug 2018 07:26:45 +0000 (16:26 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 18 Mar 2019 09:09:55 +0000 (18:09 +0900)
When SD card removed in slot that can happen
sometimes abnormal removed in 0ms delay.
So, Set to 200ms for stability.

Change-Id: Ie5bf4ff4424888ab0c9f1686bb02b3b7e1c7a76c
Signed-off-by: dukhyun kwon <d_hyun.kwon@samsung.com>
drivers/mmc/host/dw_mmc.c

index c68983b88c07d73d1c6104a810000e8782e7e564..184e78fccc224ad70f079d05b0b499d74fa78058 100644 (file)
@@ -3899,10 +3899,10 @@ static void dw_mci_work_routine_card(struct work_struct *work)
                        dw_mci_reset(host);
                spin_unlock_bh(&host->lock);
        }
-       if (present)
-               mmc_detect_change(slot->mmc, msecs_to_jiffies(host->pdata->detect_delay_ms));
-       else {
-               mmc_detect_change(slot->mmc, 0);
+
+       mmc_detect_change(slot->mmc, msecs_to_jiffies(host->pdata->detect_delay_ms));
+
+       if (!present) {
                if (host->pdata->only_once_tune)
                        host->pdata->tuned = false;