mmc: core: Handle card shutdown from mmc_bus
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:40 +0000 (17:03 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 05:07:45 +0000 (13:07 +0800)
commitcbac2e52012519d9ef39dedcc50b75c1b05ab8b7
treedd2ad9ea3105748d5432c2d0786d08c5869e8a19
parentaec2327ed02458b481caa2b3943401a7a33ff18f
mmc: core: Handle card shutdown from mmc_bus

Considering shutdown of the card, the responsibility to initate this
sequence shall be driven from the mmc_bus.

This patch enables the mmc_bus to handle this sequence properly. A new
.shutdown callback is added in the mmc_driver struct which is used to
shutdown the blk device.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
drivers/mmc/card/mmc_test.c
drivers/mmc/core/bus.c
include/linux/mmc/card.h