projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e728fa1
)
mips: dma_debug: add debug_dma_mapping_error support
author
Shuah Khan
<shuah.khan@hp.com>
Fri, 23 Nov 2012 21:34:56 +0000
(14:34 -0700)
committer
Joerg 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/include/asm/dma-mapping.h
b/arch/mips/include/asm/dma-mapping.h
index be39a12901c6c33563b2abedf3a7698caf76ed4c..006b43e38a9c4f831bcc1135f0048c8b8c48aaf6 100644
(file)
--- a/
arch/mips/include/asm/dma-mapping.h
+++ b/
arch/mips/include/asm/dma-mapping.h
@@
-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);
}