summaryrefslogtreecommitdiff
path: root/arch/c6x
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2012-11-23 14:32:06 -0700
committerJoerg Roedel <joro@8bytes.org>2012-11-28 15:28:57 +0100
commitad154880c03daf1f776e502e2c18775eda4280d2 (patch)
tree6e251b8284e351db5c0d27e6972d18d788b00610 /arch/c6x
parentbb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe (diff)
c6x: dma_debug: add debug_dma_mapping_error support
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> Acked-by: Mark Salter <msalter@redhat.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'arch/c6x')
-rw-r--r--arch/c6x/include/asm/dma-mapping.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/dma-mapping.h b/arch/c6x/include/asm/dma-mapping.h
index 03579fd99dba..3c694065030f 100644
--- a/arch/c6x/include/asm/dma-mapping.h
+++ b/arch/c6x/include/asm/dma-mapping.h
@@ -32,6 +32,7 @@ static inline int dma_set_mask(struct device *dev, u64 dma_mask)
*/
static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
+ debug_dma_mapping_error(dev, dma_addr);
return dma_addr == ~0;
}