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)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:18 +0000 (12:39 -0400)
commit7628774851751e55362ec7d9d57c9334e656a655
tree54a8d24423250ceec0fd3468aeef20465941085a
parent986892ca78eeddd9d6b629050fea432979ddd321
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