Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dffc55ad authored by Linus Walleij's avatar Linus Walleij Committed by Chris Ball
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent f5e0cec4
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -266,14 +266,6 @@ msmsdcc_dma_complete_tlet(unsigned long data)
	dma_unmap_sg(mmc_dev(host->mmc), host->dma.sg, host->dma.num_ents,
		     host->dma.dir);

	if (host->curr.user_pages) {
		struct scatterlist *sg = host->dma.sg;
		int i;

		for (i = 0; i < host->dma.num_ents; i++)
			flush_dcache_page(sg_page(sg++));
	}

	host->dma.sg = NULL;
	host->dma.busy = 0;