mmc: sdhci-esdhc-mcf: Use sg_miter for swapping
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 27 Jan 2024 00:19:55 +0000 (01:19 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 13 Feb 2024 12:40:56 +0000 (13:40 +0100)
commite8a167b84886ccca21ca4d0d0396f7e172876c92
tree13cff9dd190d699360d8ca30a4984b7d71ceed8a
parent68cfdeb4064e049647395271eec3c0d987141674
mmc: sdhci-esdhc-mcf: Use sg_miter for swapping

Use sg_miter iterator instead of sg_virt() and custom code
to loop over the scatterlist. The memory iterator will do
bounce buffering if the page happens to be located in high memory,
which the driver may or may not be using.

Suggested-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/linux-mmc/20240122073423.GA25859@lst.de/
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240127-mmc-proper-kmap-v2-8-d8e732aa97d1@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-mcf.c