diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-04-07 16:34:01 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-08 17:52:33 -0400 |
commit | 68ba7cb083300409eb92282417db4c179081ade3 (patch) | |
tree | 9ba6369afa8edd301cce462d34bbd287e09e2c12 /arch/mips/include | |
parent | 36fe97635826d54d07c51a5953148235b7dd6a04 (diff) |
MIPS: DMA: Allow platforms to override only the post DMA hook
Instead of having platforms to copy the entirety of
mach-generic/dma-coherence.h, check whether these platforms have already
defined a plat_post_dma_flush hook, and if not, provide an inline stub.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/9725/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-generic/dma-coherence.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-generic/dma-coherence.h b/arch/mips/include/asm/mach-generic/dma-coherence.h index 671330928e67..0f8a354fd468 100644 --- a/arch/mips/include/asm/mach-generic/dma-coherence.h +++ b/arch/mips/include/asm/mach-generic/dma-coherence.h | |||
@@ -52,9 +52,11 @@ static inline int plat_device_is_coherent(struct device *dev) | |||
52 | return coherentio; | 52 | return coherentio; |
53 | } | 53 | } |
54 | 54 | ||
55 | #ifndef plat_post_dma_flush | ||
55 | static inline void plat_post_dma_flush(struct device *dev) | 56 | static inline void plat_post_dma_flush(struct device *dev) |
56 | { | 57 | { |
57 | } | 58 | } |
59 | #endif | ||
58 | 60 | ||
59 | #ifdef CONFIG_SWIOTLB | 61 | #ifdef CONFIG_SWIOTLB |
60 | static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) | 62 | static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) |