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)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 05:08:16 +0000 (13:08 +0800)
commitcb8dcf1a58954d693406081e6fd8c4231b3df4a8
tree8bec0b0351b714cd36ebd3beaef35fc54961a7d1
parent343a7d1f33d2d57a1037602e3315c858cb306acc
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