mmc: core: Fix power_off_notify during suspend
authorGirish K S <girish.shivananjappa@linaro.org>
Tue, 15 Nov 2011 06:25:46 +0000 (11:25 +0530)
committerChris Ball <cjb@laptop.org>
Sat, 10 Dec 2011 21:18:36 +0000 (16:18 -0500)
commita80f16276388a177199204aa5b60f328d4464110
treea028c1fc5ff89cb3120159e720840e21241520f6
parent96a85d548bf960ec8e8a0c3bca2b2e88e41549db
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>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c