]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmc: Attempt to flush cache before reset
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 4 May 2016 07:38:21 +0000 (10:38 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2016 11:11:53 +0000 (13:11 +0200)
commit1e0317292598d35a352937f607e8914a3fa6c17b
tree785b062054459efd6c6dfbf52d703a6c6917a926
parent3c4bbfe5f100341d1c7ee4cc2eaa3f80cdaaed56
mmc: mmc: Attempt to flush cache before reset

CMD0 or hardware reset may invalidate the cache, so it needs to be
flushed before reset.

In the case of recovery, we can't expect flushing the cache to work
always, but have a go and ignore errors.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c