diff options
author | Shuah Khan <shuah.khan@hp.com> | 2012-11-23 22:31:09 +0100 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2012-11-28 15:28:57 +0100 |
commit | bb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe (patch) | |
tree | 1c409f03a89e8ecf5bb7b3c7b9cfd388a0cb9e17 /arch/arm64 | |
parent | sparc: dma-mapping: support debug_dma_mapping_error (diff) | |
download | linux-bb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe.tar.xz linux-bb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe.zip |
ARM64: 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: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/dma-mapping.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h index 538f4b44db5d..994776894198 100644 --- a/arch/arm64/include/asm/dma-mapping.h +++ b/arch/arm64/include/asm/dma-mapping.h @@ -50,6 +50,7 @@ static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_addr) static inline int dma_mapping_error(struct device *dev, dma_addr_t dev_addr) { struct dma_map_ops *ops = get_dma_ops(dev); + debug_dma_mapping_error(dev, dev_addr); return ops->mapping_error(dev, dev_addr); } |