projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a63cd
)
rockchip: iommu: fix compilation error on arm64
author
黄涛
<huangtao@rock-chips.com>
Thu, 23 Oct 2014 12:19:22 +0000
(20:19 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Thu, 23 Oct 2014 12:19:22 +0000
(20:19 +0800)
drivers/iommu/rockchip-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/rockchip-iommu.c
b/drivers/iommu/rockchip-iommu.c
index 4386d0e88bc864469132835ed4087d1f9da5b4e3..b5a815cb1d889a82f7c6659fe84b959840bc0e8a 100755
(executable)
--- a/
drivers/iommu/rockchip-iommu.c
+++ b/
drivers/iommu/rockchip-iommu.c
@@
-487,8
+487,12
@@
static bool iommu_reset(void __iomem *base, const char *dbgname)
static inline void pgtable_flush(void *vastart, void *vaend)
{
+#ifdef CONFIG_ARM
dmac_flush_range(vastart, vaend);
outer_flush_range(virt_to_phys(vastart), virt_to_phys(vaend));
+#elif defined(CONFIG_ARM64)
+ __dma_flush_range(vastart, vaend);
+#endif
}
static void set_fault_handler(struct iommu_drvdata *data,