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, 14 Jun 2021 11:57:37 +0000 (13:57 +0200)
commit8ae11edeb95682f6ab1983986c1daff3a00e01fc
treeeb9a2cb64b71098681f801aaca85452645afed70
parent70b52f09080565030a530a784f1c9948a7f48ca3
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