projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e0cec
)
mmc: msm_sdcc: remove needless cache flush after dma_unmap_sg()
author
Linus Walleij
<linus.walleij@linaro.org>
Wed, 16 Feb 2011 22:28:53 +0000
(23:28 +0100)
committer
Chris Ball
<cjb@laptop.org>
Thu, 17 Mar 2011 19:34:40 +0000
(15:34 -0400)
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>
drivers/mmc/host/msm_sdcc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/msm_sdcc.c
b/drivers/mmc/host/msm_sdcc.c
index 153ab977a013638a7d1a187d3bdb73a33c8d2345..67b08819556dee94b898c4c84512c5403c06ff38 100644
(file)
--- a/
drivers/mmc/host/msm_sdcc.c
+++ b/
drivers/mmc/host/msm_sdcc.c
@@
-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;