]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Use mmc_flush_cache() during mmc suspend
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Dec 2013 15:23:22 +0000 (16:23 +0100)
committerChris Ball <chris@printf.net>
Fri, 14 Feb 2014 03:58:41 +0000 (22:58 -0500)
commit4325e005091990a47e37c2636d73313e8d0dd38f
tree96e06b53dd98374f23223aba1cd84ae54af36ff5
parent96dc04f9b492e6dffbd72c99c4898ae7e20d8d33
mmc: core: Use mmc_flush_cache() during mmc suspend

Earlier we disabled the cache during suspend, which meant a flush was
internally at the eMMC performed as well.

To simplify code we can make use of the mmc_flush_cache(), during mmc
suspend, which makes the mmc_cache_ctrl() redundant so then we can
remove it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c
include/linux/mmc/host.h