[PATCH v5 0/2] Do not flush cache when it is disabled

From: Avri Altman
Date: Sun Apr 25 2021 - 02:08:57 EST


v4 -> v5
- patche "Update ext_csd.cache_ctrl if it was written" accepted
- Add one more patch: "Add cache_enabled bus ops"
- Add Acked-by tag
- another rebase

v3 -> v4
- Attend Adrian's comments
- Add Acked-by tag

v2 -> v3:
- rebase onto recent cache changes

v1 -> v2:
- Attend Adrian's comments

Cache is a temporary storage space in an eMMC device. Volatile by
nature, the cache should in typical case reduce the access time compared
to an access to the main nonvolatile storage.

Avri Altman (2):
mmc: Add cache_enabled bus ops
mmc: block: Issue flush only if allowed

drivers/mmc/core/block.c | 9 +++++++++
drivers/mmc/core/core.h | 7 +++++++
drivers/mmc/core/mmc.c | 7 +++++++
drivers/mmc/core/mmc_ops.c | 4 +---
4 files changed, 24 insertions(+), 3 deletions(-)

--
2.25.1