mmc: core: Add option to prevent eMMC sleep command
commitaa9df4fb2adcc73d36fa41e23059519be770aaa5
authorUlf Hansson <ulf.hansson@stericsson.com>
Mon, 19 Dec 2011 15:24:19 +0000 (19 16:24 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:48 +0000 (11 23:58 -0500)
tree3e076fe70dcdd092a9d44084e09946e2036eefc2
parent7efab4f35740c63502e438886cf1e4aa3f3b800f
mmc: core: Add option to prevent eMMC sleep command

Host may now use MMC_CAP2_NO_SLEEP_CMD to disable the use
of eMMC sleep/awake command.

This option can be used when your platform has a buggy
kernel crash dump software, which is supposed to store
the dump on the eMMC, but is not able to wake up the eMMC
from sleep state.

In particular, failures have been seen with u-boot; even if
it is fixed there, platforms will be slow to update their
bootloader binaries.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Hanumath Prasad <hanumath.prasad@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h