diff options
author | Girish K S <girish.shivananjappa@linaro.org> | 2011-11-15 11:55:46 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-12-10 16:18:36 -0500 |
commit | a80f16276388a177199204aa5b60f328d4464110 (patch) | |
tree | a028c1fc5ff89cb3120159e720840e21241520f6 /drivers/mmc/core/mmc.c | |
parent | 96a85d548bf960ec8e8a0c3bca2b2e88e41549db (diff) | |
download | linux-a80f16276388a177199204aa5b60f328d4464110.tar.gz linux-a80f16276388a177199204aa5b60f328d4464110.tar.bz2 linux-a80f16276388a177199204aa5b60f328d4464110.zip |
mmc: core: Fix power_off_notify during suspend
The eMMC 4.5 devices respond to only RESET and AWAKE command in the
sleep state. Hence the mmc switch command to notify power off state
should be sent before the device enters sleep state.
This patch fixes the same.
Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core/mmc.c')
-rw-r--r-- | drivers/mmc/core/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 90de9ba36d2f..d240427c1246 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -876,7 +876,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, * set the notification byte in the ext_csd register of device */ if ((host->caps2 & MMC_CAP2_POWEROFF_NOTIFY) && - (card->poweroff_notify_state == MMC_NO_POWER_NOTIFICATION)) { + (card->ext_csd.rev >= 6)) { err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_POWER_OFF_NOTIFICATION, EXT_CSD_POWER_ON, |