mmc: core: Put eMMC in Sleep mode before suspend
authorBalaji T K <balajitk@ti.com>
Thu, 8 Sep 2011 16:38:39 +0000 (22:08 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 19:43:42 +0000 (15:43 -0400)
commitc3805467aad7ce4e31c2b935046843de08cfc026
treeaa7bba210472d7b071071b1f1c4619a647f1f1ac
parent6fe47179a07009ee3ee7c8b962966fee420becc8
mmc: core: Put eMMC in Sleep mode before suspend

Put MMC to sleep if it supports SLEEP/AWAKE (CMD5) in the mmc suspend
so that Vcc (NAND core) can be cut to minimize power consumption.
eMMC put into SLEEP can respond to CMD0 or H/W reset or CMD5.
Current implemention on resume from suspend relies on CMD0 in
mmc_init_card to get out of SLEEP mode.

Signed-off-by: Balaji T K <balajitk@ti.com>
Acked-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c