projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce0d20
)
ARM: dma: implement set_arch_dma_coherent_ops()
author
Santosh Shilimkar
<
[email protected]
>
Thu, 24 Apr 2014 15:30:06 +0000
(11:30 -0400)
committer
Santosh Shilimkar
<
[email protected]
>
Wed, 7 May 2014 13:21:44 +0000
(09:21 -0400)
Implement the set_arch_dma_coherent_ops() for ARM architecture.
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Olof Johansson <
[email protected]
>
Cc: Grant Likely <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Cc: Linus Walleij <
[email protected]
>
Reviewed-by: Rob Herring <
[email protected]
>
Signed-off-by: Grygorii Strashko <
[email protected]
>
Signed-off-by: Santosh Shilimkar <
[email protected]
>
arch/arm/include/asm/dma-mapping.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/dma-mapping.h
b/arch/arm/include/asm/dma-mapping.h
index b0c79fdd9375bc902e6a2d09c403daac24db6c3b..c45b61a4b4a5250e66908038be02203f9880ebec 100644
(file)
--- a/
arch/arm/include/asm/dma-mapping.h
+++ b/
arch/arm/include/asm/dma-mapping.h
@@
-121,6
+121,13
@@
static inline unsigned long dma_max_pfn(struct device *dev)
}
#define dma_max_pfn(dev) dma_max_pfn(dev)
+static inline int set_arch_dma_coherent_ops(struct device *dev)
+{
+ set_dma_ops(dev, &arm_coherent_dma_ops);
+ return 0;
+}
+#define set_arch_dma_coherent_ops(dev) set_arch_dma_coherent_ops(dev)
+
static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
unsigned int offset = paddr & ~PAGE_MASK;