projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f8bf8f
)
mmc: at91_mci: modify cache flush routines
author
Nicolas Ferre
<
[email protected]
>
Sat, 15 May 2010 16:32:31 +0000
(12:32 -0400)
committer
Linus Torvalds
<
[email protected]
>
Sat, 15 May 2010 19:48:10 +0000
(12:48 -0700)
As we were using an internal dma flushing routine, this patch changes to
the DMA API flush_kernel_dcache_page(). Driver is able to compile now.
[
[email protected]
: flush_kernel_dcache_page() comes before kunmap_atomic()]
Signed-off-by: Nicolas Ferre <
[email protected]
>
Cc: James Bottomley <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/mmc/host/at91_mci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/at91_mci.c
b/drivers/mmc/host/at91_mci.c
index a6dd7da37357a11667755d22d6898df8e3fc97e9..336d9f553f3e85ae6240b5a22c83ae0eb33fe3b0 100644
(file)
--- a/
drivers/mmc/host/at91_mci.c
+++ b/
drivers/mmc/host/at91_mci.c
@@
-314,8
+314,8
@@
static void at91_mci_post_dma_read(struct at91mci_host *host)
dmabuf = (unsigned *)tmpv;
}
+ flush_kernel_dcache_page(sg_page(sg));
kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ);
- dmac_flush_range((void *)sgbuffer, ((void *)sgbuffer) + amount);
data->bytes_xfered += amount;
if (size == 0)
break;