frv: make dma_cache_sync a no-op
authorChristoph Hellwig <hch@lst.de>
Sun, 27 Aug 2017 07:59:32 +0000 (09:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 14:37:18 +0000 (16:37 +0200)
frv does not implement DMA_ATTR_NON_CONSISTENT allocations, so it doesn't
make any sense to do any work in dma_cache_sync given that it must be a
no-op when dma_alloc_attrs returns coherent memory.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/frv/include/asm/dma-mapping.h

index 354900917585a220fe840aecb4b2a081616f6d42..da0e5c9744c4cd88c27b144a88d8d7e3c9d614cc 100644 (file)
@@ -18,7 +18,6 @@ static inline
 void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
                    enum dma_data_direction direction)
 {
-       flush_write_buffers();
 }
 
 #endif  /* _ASM_DMA_MAPPING_H */