Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1661179

[PATCH 33/44] openrisc: remove arch-specific dma_supported implementation

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject [PATCH 33/44] openrisc: remove arch-specific dma_supported implementation
Date 2017-06-08 15:40 +0200
Message-ID <tQ5Pj-4SX-3@gated-at.bofh.it> (permalink)
References <tQ5FE-4OD-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This implementation is simply bogus - hexagon only has a simple
direct mapped DMA implementation and thus doesn't care about the
address.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 arch/openrisc/include/asm/dma-mapping.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/openrisc/include/asm/dma-mapping.h b/arch/openrisc/include/asm/dma-mapping.h
index a4ea139c2ef9..f41bd3cb76d9 100644
--- a/arch/openrisc/include/asm/dma-mapping.h
+++ b/arch/openrisc/include/asm/dma-mapping.h
@@ -33,11 +33,4 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
 	return &or1k_dma_map_ops;
 }
 
-#define HAVE_ARCH_DMA_SUPPORTED 1
-static inline int dma_supported(struct device *dev, u64 dma_mask)
-{
-	/* Support 32 bit DMA mask exclusively */
-	return dma_mask == DMA_BIT_MASK(32);
-}
-
 #endif	/* __ASM_OPENRISC_DMA_MAPPING_H */
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 33/44] openrisc: remove arch-specific dma_supported implementation Christoph Hellwig <hch@lst.de> - 2017-06-08 15:40 +0200
  Re: [PATCH 33/44] openrisc: remove arch-specific dma_supported implementation Geert Uytterhoeven <geert@linux-m68k.org> - 2017-06-09 14:30 +0200
    Re: [PATCH 33/44] openrisc: remove arch-specific dma_supported         implementation Christoph Hellwig <hch@lst.de> - 2017-06-16 10:40 +0200

csiph-web