projects/linux·commit bdef2fe8

mmc: at91_mci: modify cache flush routines

bdef2fe8 · Nicolas Ferre <[email protected]> · 2010-05-15 12:32:31 -04:00

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]>
Commit
bdef2fe88b1e4bde7458aedd207929ce3f9d66ee
Parents
3f8bf8f0

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/mmc/host/at91_mci.cmodified+1−1View file

drivers/mmc/host/at91_mci.c

View file
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c
index a6dd7da..336d9f5 100644
--- 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;