mmc: core: Stop bkops for eMMC only from mmc suspend
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 May 2013 12:02:36 +0000 (14:02 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 04:42:10 +0000 (12:42 +0800)
commit1cdf166111e849c6670fdd8a1041dd1e0cb214c4
tree2938dd7fdeffc0375c829065aad73db75f9f87cb
parentcac3fcee6f937c6f098f91d2aebb39a400fdc9eb
mmc: core: Stop bkops for eMMC only from mmc suspend

Move mmc suspend specific operations to be executed from the .suspend
callback in the mmc bus_ops. This simplifies the mmc_suspend_host
function which is supposed to handle nothing but common suspend tasks.

Since eMMC can be considered non-removable there are no need to check
for ongoing bkops at PM_SUSPEND_PREPARE notification so remove it.

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