[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210506145829.198823-1-ulf.hansson@linaro.org>
Date: Thu, 6 May 2021 16:58:27 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: linux-mmc@...r.kernel.org, Ulf Hansson <ulf.hansson@...aro.org>,
Adrian Hunter <adrian.hunter@...el.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Shawn Lin <shawn.lin@...k-chips.com>,
Avri Altman <avri.altman@....com>,
Masami Hiramatsu <masami.hiramatsu@...aro.org>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] mmc: core: Implement support for cache ctrl for SD cards
In the SD spec v6.x the SD function extension registers for performance
enhancements were introduced. As a part of this an optional internal cache on
the SD card can be used to improve performance.
To let the SD card use the cache, the host needs to enable it and take care of
flushing of the cache. This series implement support for this.
Note that, there are no HW updates needed for the host to support this feature.
This has been tested on 64GB Sandisk Extreme PRO UHS-I A2 card.
The series is based upon another recently posted series [1] that added support
for poweroff notification.
Tests and reviews are of course greatly appreciated!
Kind regards
Ulf Hansson
[1]
https://patchwork.kernel.org/project/linux-mmc/list/?series=476933
Ulf Hansson (2):
mmc: core: Move eMMC cache flushing to a new bus_ops callback
mmc: core: Add support for cache ctrl for SD cards
drivers/mmc/core/block.c | 2 +-
drivers/mmc/core/core.h | 9 ++++
drivers/mmc/core/mmc.c | 25 +++++++++-
drivers/mmc/core/mmc_ops.c | 22 +--------
drivers/mmc/core/mmc_ops.h | 2 +-
drivers/mmc/core/sd.c | 98 ++++++++++++++++++++++++++++++++++++++
include/linux/mmc/card.h | 1 +
7 files changed, 134 insertions(+), 25 deletions(-)
--
2.25.1
Powered by blists - more mailing lists