Arnd Bergmann arnd@arndb.de wrote @ Tue, 18 Jun 2013 16:15:27 +0200:
On Tuesday 18 June 2013, Catalin Marinas wrote:
1, Copy arch/arm/mm/dma-mapping.c arch/arm64/mm/dma-mapping.c(+swiotlb) 2, Adapt arch/arm64/mm/dma-mapping.c(+swiotlb) to 64bit compatible. 3, Factor out the common code from them into mm/dma-mapping.c
Or add the relevant code to something like lib/iommu-helper.c, convert arm64 to use that and we can work on converting arm and other architectures afterwards.
Yes, that would work too.
Ok, this seems to be the way to go. Thank you for the guide.