[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210322133645.4901-1-avri.altman@wdc.com>
Date: Mon, 22 Mar 2021 15:36:43 +0200
From: Avri Altman <avri.altman@....com>
To: Ulf Hansson <ulf.hansson@...aro.org>, linux-mmc@...r.kernel.org
Cc: Adrian Hunter <adrian.hunter@...el.com>,
linux-kernel@...r.kernel.org, Avri Altman <avri.altman@....com>
Subject: [PATCH 0/2] Do not flush cache when it is disabled
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 | 11 +++++++++++
drivers/mmc/core/mmc_ops.c | 4 +---
drivers/mmc/core/mmc_ops.h | 5 +++++
3 files changed, 17 insertions(+), 3 deletions(-)
--
2.25.1
Powered by blists - more mailing lists