mmc: sdhci: mmc detect change timeout update
Bitan Biswas [Fri, 8 Jul 2016 11:15:44 +0000 (16:15 +0530)]
Higher mmc detect change timeout is needed
even if card is removed during suspend

bug 200196862

Change-Id: Ie771af36324d9e5003d1a4167f306c765848b490
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/1177591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

drivers/mmc/host/sdhci.c

index 73daeff..0343536 100644 (file)
@@ -3013,7 +3013,7 @@ static void sdhci_tasklet_card(unsigned long param)
        struct sdhci_host *host = (struct sdhci_host *)param;
 
        sdhci_card_event(host->mmc);
-       if (host->detect_resume && host->ops->get_cd(host))
+       if (host->detect_resume)
                mmc_detect_change(host->mmc, msecs_to_jiffies(700));
        else
                mmc_detect_change(host->mmc, msecs_to_jiffies(200));