]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix PowerOff Notify suspend/resume
authorGirish K S <girish.shivananjappa@linaro.org>
Tue, 31 Jan 2012 10:14:03 +0000 (15:44 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 14 Feb 2012 01:39:02 +0000 (20:39 -0500)
commitc0dfd5fcc10fd46a3adeca270d2dc40523388587
tree9c6df98a296ca4865db3621f0bc295d687272f66
parent346f0c403f8c39bee463d32465323c39dafb376f
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.

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>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c
include/linux/mmc/card.h