Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

[akpm@linux-foundation.org: flush_kernel_dcache_page() comes before kunmap_atomic()]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Nicolas Ferre and committed by
Linus Torvalds
bdef2fe8 3f8bf8f0

+1 -1
+1 -1
drivers/mmc/host/at91_mci.c
··· 314 314 dmabuf = (unsigned *)tmpv; 315 315 } 316 316 317 + flush_kernel_dcache_page(sg_page(sg)); 317 318 kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ); 318 - dmac_flush_range((void *)sgbuffer, ((void *)sgbuffer) + amount); 319 319 data->bytes_xfered += amount; 320 320 if (size == 0) 321 321 break;