Messages in this thread | | | From | Avri Altman <> | Subject | [PATCH v2 0/2] Do not flush cache when it is disabled | Date | Sun, 18 Apr 2021 08:59:51 +0300 |
| |
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.
The cache function can be turned ON and OFF. Once OFF, the host is not expected to issue a flush-cache command to the device.
Avri Altman (2): mmc: block: Issue flush only if allowed mmc: block: Update ext_csd.cache_ctrl if it was written
drivers/mmc/core/block.c | 19 +++++++++++++++++++ drivers/mmc/core/mmc_ops.c | 4 +--- drivers/mmc/core/mmc_ops.h | 5 +++++ 3 files changed, 25 insertions(+), 3 deletions(-)
-- 2.25.1
| |