Thread (63 messages) 63 messages, 10 authors, 2014-06-02

Re: [PATCH v3 6/7] ARM: dma: implement set_arch_dma_coherent_ops()

From: Rob Herring <hidden>
Date: 2014-05-02 00:58:24
Also in: linux-arm-kernel, lkml

On Thu, Apr 24, 2014 at 10:30 AM, Santosh Shilimkar
[off-list ref] wrote:
Implement the set_arch_dma_coherent_ops() for ARM architecture.

Cc: Greg Kroah-Hartman <redacted>
Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>
Cc: Arnd Bergmann <redacted>
Cc: Olof Johansson <redacted>
Cc: Grant Likely <redacted>
Cc: Rob Herring <redacted>
Cc: Catalin Marinas <redacted>
Cc: Linus Walleij <redacted>
Signed-off-by: Grygorii Strashko <redacted>
Signed-off-by: Santosh Shilimkar <redacted>
Reviewed-by: Rob Herring <redacted>
quoted hunk ↗ jump to hunk
---
 arch/arm/include/asm/dma-mapping.h |    7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index 424fda9..1965cd8 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -118,6 +118,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;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help