summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2012-11-23 14:31:09 -0700
committerJoerg Roedel <joro@8bytes.org>2012-11-28 15:28:57 +0100
commitbb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe (patch)
tree1c409f03a89e8ecf5bb7b3c7b9cfd388a0cb9e17 /arch/arm64
parent5d346d103355a0ea1ccc40b7ac0659326cb74077 (diff)
downloadop-kernel-dev-bb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe.zip
op-kernel-dev-bb7c4deb82c2f0b278cdf45a392a3ed9479cdbbe.tar.gz
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.h1
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 538f4b4..9947768 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);
}
OpenPOWER on IntegriCloud