Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: msm_sdcc: remove needless cache flush after dma_unmap_sg()

dma_unmap_sg() already flushes the cache, I don't get what this
code is doing here.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Linus Walleij and committed by
Chris Ball
dffc55ad f5e0cec4

-8
-8
drivers/mmc/host/msm_sdcc.c
··· 266 266 dma_unmap_sg(mmc_dev(host->mmc), host->dma.sg, host->dma.num_ents, 267 267 host->dma.dir); 268 268 269 - if (host->curr.user_pages) { 270 - struct scatterlist *sg = host->dma.sg; 271 - int i; 272 - 273 - for (i = 0; i < host->dma.num_ents; i++) 274 - flush_dcache_page(sg_page(sg++)); 275 - } 276 - 277 269 host->dma.sg = NULL; 278 270 host->dma.busy = 0; 279 271