mmc: core: Fix PowerOff Notify suspend/resume
authorPavan Kunapuli <pkunapuli@nvidia.com>
Fri, 27 Jul 2012 09:48:02 +0000 (14:48 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Tue, 31 Jul 2012 10:41:05 +0000 (03:41 -0700)
commitca288fa18ca9f8fb2601925904c6b53cd5e3e134
tree344fb09a945233ae3906d95a6b252a80a1f2c41d
parent8c8eda3eb618bd7bed2d1339584ece423300563c
mmc: core: Fix PowerOff Notify suspend/resume

Modified the mmc_poweroff to resume before sending the poweroff
notification command. In sleep mode only AWAKE and RESET commands are
allowed, so before sending the poweroff notification command resume from
sleep mode and then send the notification command.

PowerOff Notify is tested on a Synopsis Designware Host Controller
(eMMC 4.5). The suspend to RAM and resume works fine.

Change-Id: Ib4642a29e423aee6041a92cc72a388d677674ae3
Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
Tested-by: Girish K S <girish.shivananjappa@linaro.org>
Reviewed-by: Saugata Das <saugata.das@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

Bug 1007644
Bug 936069

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I2e3d421c82eb765cb640876691ffe4818d7e146b
Reviewed-on: http://git-master/r/118918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/mmc/core/mmc.c
include/linux/mmc/card.h