MIPS: consolidate the swiotlb implementations
authorChristoph Hellwig <[email protected]>
Fri, 15 Jun 2018 11:08:36 +0000 (13:08 +0200)
committerPaul Burton <[email protected]>
Sun, 24 Jun 2018 16:26:03 +0000 (09:26 -0700)
commitf6d302e33d68ddbaf99c774ed994599243462b24
tree62aba80f4998764b95b5cf7d521bf44b6f9ba96f
parente799de3efb9d6e0df5740eed901b89a6e533eaef
MIPS: consolidate the swiotlb implementations

Octeon and Loongson share exactly the same code, move it into a common
implementation, and use that implementation directly from get_arch_dma_ops.

Also provide the expected dma-direct.h helpers directly instead of
delegating to platform dma-coherence.h headers.

Signed-off-by: Christoph Hellwig <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/19534/
Signed-off-by: Paul Burton <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: David Daney <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Tom Bogendoerfer <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: [email protected]
Cc: [email protected]
arch/mips/cavium-octeon/dma-octeon.c
arch/mips/include/asm/dma-direct.h
arch/mips/include/asm/dma-mapping.h
arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
arch/mips/include/asm/mach-loongson64/dma-coherence.h
arch/mips/loongson64/common/dma-swiotlb.c
arch/mips/mm/Makefile
arch/mips/mm/dma-swiotlb.c [new file with mode: 0644]