mmc: fix sdhci_host PM flags usage
David Schalig [Thu, 9 Feb 2012 01:38:10 +0000 (10:38 +0900)]
MMC_PM_KEEP_POWER was used on the wrong structure member, which might
cause card interrupt lost during suspend/resume

Bug 936503

Change-Id: Ib42d7a5ba27c0175e944223967c416a3c80802dd
Signed-off-by: David Schalig <dschalig@nvidia.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/83011
Reviewed-on: http://git-master/r/86020
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/mmc/host/sdhci.c

index 5bce6c2..92ff372 100644 (file)
@@ -2330,7 +2330,7 @@ int sdhci_suspend_host(struct sdhci_host *host, pm_message_t state)
        if (mmc->card && (mmc->card->type != MMC_TYPE_SDIO))
                ret = mmc_suspend_host(host->mmc);
 
-       if (host->flags & MMC_PM_KEEP_POWER)
+       if (mmc->pm_flags & MMC_PM_KEEP_POWER)
                host->card_int_set = sdhci_readl(host, SDHCI_INT_ENABLE) &
                        SDHCI_INT_CARD_INT;