Discussion:
[PATCH] MIPS: R14000: Add missing CPU_R14000 reference in cpu_needs_post_dma_flush()
Joshua Kinard
2014-10-08 01:17:45 UTC
Permalink
cpu_needs_post_dma_flush() in arch/mips/mm/dma-default.c is missing a check for
CPU_R14000, where it already has checks for CPU_R10000 and CPU_R12000. This
patch adds the missing CPU_R14000 check.

Signed-off-by: Joshua Kinard <***@gentoo.org>
---
arch/mips/mm/dma-default.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 44b6dff..3693c91 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -66,6 +66,7 @@ static inline int cpu_needs_post_dma_flush(struct device *dev)
return !plat_device_is_coherent(dev) &&
(boot_cpu_type() == CPU_R10000 ||
boot_cpu_type() == CPU_R12000 ||
+ boot_cpu_type() == CPU_R14000 ||
boot_cpu_type() == CPU_BMIPS5000);
}

Loading...