Skip to content

Commit

Permalink
mips: dma_debug: add debug_dma_mapping_error support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shuah Khan authored and Joerg Roedel committed Nov 28, 2012
1 parent e728fa1 commit 9c83b07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9c83b07

Please sign in to comment.