Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5b648a98db05fd0152349a11a7f7e30b80643977 Commit: 5b648a98db05fd0152349a11a7f7e30b80643977 Parent: 47d7c44b87df91fdb5d9c2678fc90afd46c14fbe Author: Ralf Baechle <[EMAIL PROTECTED]> AuthorDate: Fri Mar 2 11:42:11 2007 +0000 Committer: Ralf Baechle <[EMAIL PROTECTED]> CommitDate: Sun Mar 4 19:02:42 2007 +0000
[MIPS] dma_sync_sg_for_cpu is a no-op except for non-coherent R10000s. Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]> --- arch/mips/mm/dma-default.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index a72093a..f503d02 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c @@ -295,7 +295,7 @@ void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, /* Make sure that gcc doesn't leave the empty loop body. */ for (i = 0; i < nelems; i++, sg++) { - if (!plat_device_is_coherent(dev)) + if (cpu_is_noncoherent_r10000(dev)) __dma_sync((unsigned long)page_address(sg->page), sg->length, direction); plat_unmap_dma_mem(sg->dma_address); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html