]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
mmc: sdhci: mmc detect change timeout update
authorBitan Biswas <bbiswas@nvidia.com>
Fri, 8 Jul 2016 11:15:44 +0000 (16:45 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 17 Jul 2016 21:00:13 +0000 (14:00 -0700)
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 73daeff76aa8bb9a661d69a78f653eedf2fb08a2..0343536dfcace762b4f7246876c776c98e0d169a 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));