mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mmc: at91_mci: modify cache flush routines
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]>
This commit is contained in:
parent
3f8bf8f0fd
commit
bdef2fe88b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue