From: Jayachandran C Date: Mon, 10 Jun 2013 06:28:08 +0000 (+0000) Subject: MIPS: Support SWIOTLB in default dma operations X-Git-Tag: v3.11-rc1~14^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4954a9a211f1863e3ca3958fd56ad06e1bddc22d;p=pandora-kernel.git MIPS: Support SWIOTLB in default dma operations Provide a default implementation of phys_to_dma and dma_to_phys in mach-generic/dma_coherence.h. If CONFIG_NEED_SG_DMA_LENGTH is defined, the dma_length field in struct scatterlist is used. Set this up in mips_dma_map_sg so that the default mips DMA ops can be used when SWIOTLB is enabled. Signed-off-by: Jayachandran C Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5409/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed