mmc: core: Handle both poweroff notification types for eMMC
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:43 +0000 (17:03 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:19 +0000 (12:39 -0400)
commit03d071fc8de4ad9b6e7374720ae81b7e928f6075
tree959ae3f9c890a50722f853d1f58f824b8ffdabf3
parent5992e78697484d8f58b749f87a06f89f4ba40a47
mmc: core: Handle both poweroff notification types for eMMC

Depending on the context of the operation while powering down the card,
either POWER_OFF_NOTIFY_SHORT or POWER_OFF_NOTIFY_LONG will be used. In
suspend context a short timeout is preferred while a long timeout would
be acceptable in a shutdown/hibernation context.

We add a new parameter to the mmc_suspend function so we can provide an
indication of what notification type to use.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c