OpenCloudOS-Kernel/arch/arm/mach-footbridge
Arnd Bergmann be7f3f901c ARM: footbridge: remove custom DMA address handling
Footbridge is the last Arm platform that has its own
__virt_to_bus()/__bus_to_virt()/phys_to_dma()/dma_to_phys() abstraction,
but this is just a simple offset now.

For PCI devices, the offset that is programmed into the PCI bridge must
also be set in each device using dma_direct_set_offset().  As Arm does
not have a pcibios_bus_add_device() helper yet, just use a bus notifier
for this.

For the ISA DMA, drivers now pass a non-translated physical address into
set_dma_addr(), so they have to be converted back with the corresponding
isa_bus_to_virt() function and then into the correct bus address with
the offset using the isa_dma_dev.

Tested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-09-15 15:59:16 +02:00
..
include/mach ARM: footbridge: remove custom DMA address handling 2022-09-15 15:59:16 +02:00
Kconfig ARM: footbridge: remove custom DMA address handling 2022-09-15 15:59:16 +02:00
Makefile ARM: footbridge: move isa-dma support into footbridge 2022-09-09 17:14:34 +02:00
Makefile.boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cats-hw.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cats-pci.c ARM: footbridge: fix PCI interrupt mapping 2021-03-25 10:26:21 +00:00
common.c ARM: footbridge: remove custom DMA address handling 2022-09-15 15:59:16 +02:00
common.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dc21285-timer.c ARM: 8965/2: footbridge: replace setup_irq() by request_irq() 2020-03-19 09:27:40 +00:00
dc21285.c ARM: footbridge: remove custom DMA address handling 2022-09-15 15:59:16 +02:00
dma-isa.c ARM: footbridge: remove custom DMA address handling 2022-09-15 15:59:16 +02:00
ebsa285-pci.c ARM: footbridge: fix PCI interrupt mapping 2021-03-25 10:26:21 +00:00
ebsa285.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isa-irq.c ARM: 8965/2: footbridge: replace setup_irq() by request_irq() 2020-03-19 09:27:40 +00:00
isa-rtc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isa-timer.c ARM: 8965/2: footbridge: replace setup_irq() by request_irq() 2020-03-19 09:27:40 +00:00
isa.c ARM: footbridge: remove leftover from personal-server 2022-09-09 17:14:28 +02:00
netwinder-hw.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netwinder-pci.c ARM: footbridge: fix PCI interrupt mapping 2021-03-25 10:26:21 +00:00