diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-19 10:28:28 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-07-07 18:18:57 +0200 |
commit | ae626eb97376148bb63c3f3ca9517fde0f39bec3 (patch) | |
tree | 214562bf07bea887ba1d78e67ff27835ac74e240 /arch/arm/mach-highbank | |
parent | ARM/dma-mapping: use the generic versions of dma_to_phys/phys_to_dma by default (diff) | |
download | linux-ae626eb97376148bb63c3f3ca9517fde0f39bec3.tar.xz linux-ae626eb97376148bb63c3f3ca9517fde0f39bec3.zip |
ARM/dma-mapping: use dma-direct unconditionally
Use dma-direct unconditionally on arm. It has already been used for
some time for LPAE and nommu configurations.
This mostly changes the streaming mapping implementation and the (simple)
coherent allocator for device that are DMA coherent. The existing
complex allocator for uncached mappings for non-coherent devices is still
used as is using the arch_dma_alloc/arch_dma_free hooks.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Andre Przywara <andre.przywara@arm.com> [highbank]
Tested-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm/mach-highbank')
-rw-r--r-- | arch/arm/mach-highbank/highbank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index db607955a7e4..5d4f977ac7d2 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c @@ -98,7 +98,7 @@ static int highbank_platform_notifier(struct notifier_block *nb, if (of_property_read_bool(dev->of_node, "dma-coherent")) { val = readl(sregs_base + reg); writel(val | 0xff01, sregs_base + reg); - set_dma_ops(dev, &arm_coherent_dma_ops); + dev->dma_coherent = true; } return NOTIFY_OK; |