Skip to contentSkip to conversation

ia64: dma-mapping: support debug_dma_mapping_error

PATCH New Shuah Khan 1 participant 3 messages Oct 25, 2012 – Nov 15, 2012

lore
Share & tools
lore

Shuah Khan

author
#0 lore raw

PATCH 1/1 ia64: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from debug_dma_unmap() interface when it checks for mapping error checked status. Without this patch, device driver failed to check map error warning is generated.

---
 arch/ia64/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/include/asm/dma-mapping.h +1 -0
index 4f5e814..cf3ab7e 100644
@@ -58,6 +58,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr)
 {
 	struct dma_map_ops *ops = platform_dma_get_ops(dev);
+	debug_dma_mapping_error(dev, daddr);
 	return ops->mapping_error(dev, daddr);
 }
 
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH RESEND 1/1 ia64: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from debug_dma_unmap() interface when it checks for mapping error checked status. Without this patch, device driver failed to check map error warning is generated.

---
 arch/ia64/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/include/asm/dma-mapping.h +1 -0
index 4f5e814..cf3ab7e 100644
@@ -58,6 +58,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr)
 {
 	struct dma_map_ops *ops = platform_dma_get_ops(dev);
+	debug_dma_mapping_error(dev, daddr);
 	return ops->mapping_error(dev, daddr);
 }
 
Signature · 1 line
1.7.9.5
author
#2 lore raw
Quoted 15 lines · Shuah Khan

Add support for debug_dma_mapping_error() call to avoid warning from debug_dma_unmap() interface when it checks for mapping error checked status. Without this patch, device driver failed to check map error warning is generated.

---
 arch/ia64/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/include/asm/dma-mapping.h +0 -0
index 4f5e814..cf3ab7e 100644

arch/ia64/include/asm/dma-mapping.h static inline void dma_free_attrs(struct device *dev, size_t size, · line 64

Quoted 7 lines
arch/ia64/include/asm/dma-mapping.h +1 -0
@@ -58,6 +58,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr)
 {
 	struct dma_map_ops *ops = platform_dma_get_ops(dev);
+	debug_dma_mapping_error(dev, daddr);
 	return ops->mapping_error(dev, daddr);
 }
 

Marek,

This one is for ia64 to go through your tree with all the other arch debug_dma_mapping_error() patches.

Thanks,
-- Shuah