All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Do not flush cache when it is disabled
@ 2021-04-18  5:59 Avri Altman
  2021-04-18  5:59 ` [PATCH v2 1/2] mmc: block: Issue flush only if allowed Avri Altman
  2021-04-18  5:59 ` [PATCH v2 2/2] mmc: block: Update ext_csd.cache_ctrl if it was written Avri Altman
  0 siblings, 2 replies; 6+ messages in thread
From: Avri Altman @ 2021-04-18  5:59 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc, Adrian Hunter; +Cc: linux-kernel, Avri Altman

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-19 12:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-18  5:59 [PATCH v2 0/2] Do not flush cache when it is disabled Avri Altman
2021-04-18  5:59 ` [PATCH v2 1/2] mmc: block: Issue flush only if allowed Avri Altman
2021-04-19 12:39   ` Ulf Hansson
2021-04-19 12:47     ` Avri Altman
2021-04-19 12:48     ` Avri Altman
2021-04-18  5:59 ` [PATCH v2 2/2] mmc: block: Update ext_csd.cache_ctrl if it was written Avri Altman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.