If eMMC Cache feature enabled, we'd better flush eMMC cache in the shutdown callback. Otherwise data corruption issue may be observed. Signed-off-by: Yunpeng Gao <yunpeng.gao@xxxxxxxxx> --- drivers/mmc/card/block.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 452782b..8a4010e 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2509,6 +2509,10 @@ static int _mmc_blk_suspend(struct mmc_card *card) static void mmc_blk_shutdown(struct mmc_card *card) { _mmc_blk_suspend(card); + + mmc_claim_host(card->host); + mmc_flush_cache(card); + mmc_release_host(card->host); } #ifdef CONFIG_PM -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html