]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: core: Move eMMC cache flushing to a new bus_ops callback
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 6 May 2021 14:58:28 +0000 (16:58 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 May 2021 13:12:30 +0000 (15:12 +0200)
commitbf1d491b9189285c37879abafcdc5ead6a9d01b1
treed9392f4f55f2201baaed13c896af97ca108084ec
parent1ddad40a398d8941334dcf5443f91942ef8e962b
mmc: core: Move eMMC cache flushing to a new bus_ops callback

To prepare to add internal cache management for SD cards, let's start by
moving the eMMC specific code into a new ->flush_cache() bus_ops callback.

In this way, it becomes straight forward to add the SD specific parts,
as subsequent changes are about to show.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210506145829.198823-2-ulf.hansson@linaro.org
drivers/mmc/core/block.c
drivers/mmc/core/core.h
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h