]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit3e73c36b4dc224529d0b0c0d5d69c0dacd793c42
tree9c6df98a296ca4865db3621f0bc295d687272f66
parent012e4671e445ac1dd04f40c0b974685280bedca3
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