dma-mapping: turn dma_cache_sync into a dma_map_ops method
After we removed all the dead wood it turns out only two architectures actually implement dma_cache_sync as a real op: mips and parisc. Add a cache_sync method to struct dma_map_ops and implement it for the mips defualt DMA ops, and the parisc pa11 ops. Note that arm, arc and openrisc support DMA_ATTR_NON_CONSISTENT, but never provided a functional dma_cache_sync implementations, which seems somewhat odd. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Robin Murphy <robin.murphy@arm.com>
Showing
- arch/unicore32/include/asm/dma-mapping.h 0 additions, 5 deletionsarch/unicore32/include/asm/dma-mapping.h
- arch/x86/include/asm/dma-mapping.h 0 additions, 6 deletionsarch/x86/include/asm/dma-mapping.h
- arch/xtensa/include/asm/dma-mapping.h 0 additions, 5 deletionsarch/xtensa/include/asm/dma-mapping.h
- include/linux/dma-mapping.h 13 additions, 0 deletionsinclude/linux/dma-mapping.h
Loading
Please register or sign in to comment