mips: dma_debug: add debug_dma_mapping_error support
authorShuah Khan <shuah.khan@hp.com>
Fri, 23 Nov 2012 21:34:56 +0000 (14:34 -0700)
committerJoerg Roedel <joro@8bytes.org>
Wed, 28 Nov 2012 14:28:59 +0000 (15:28 +0100)
Add dma-debug interface debug_dma_mapping_error() to debug drivers that fail
to check dma mapping errors on addresses returned by dma_map_single() and
dma_map_page() interfaces.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
arch/mips/include/asm/dma-mapping.h

index be39a12901c6c33563b2abedf3a7698caf76ed4c..006b43e38a9c4f831bcc1135f0048c8b8c48aaf6 100644 (file)
@@ -40,6 +40,8 @@ static inline int dma_supported(struct device *dev, u64 mask)
 static inline int dma_mapping_error(struct device *dev, u64 mask)
 {
        struct dma_map_ops *ops = get_dma_ops(dev);
+
+       debug_dma_mapping_error(dev, mask);
        return ops->mapping_error(dev, mask);
 }