MIPS: pci-legacy: Override pci_address_to_pio
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 14 Jan 2025 18:11:58 +0000 (18:11 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 20 Jan 2025 19:39:23 +0000 (20:39 +0100)
commitdf1b8d6e89db0edd572a1e375f5d3dd5575b9a9b
tree5c672a25e5dfbb27c5f7e7df377a74a67a190fbb
parenta3c4afc0e081f8b6b5a744afb3f69c88288d218e
MIPS: pci-legacy: Override pci_address_to_pio

pci-legacy systems are not using logic_pio to managed PIO
allocations, thus the generic pci_address_to_pio won't work
when PCI_IOBASE is defined.

Override the function to use architecture implementation to
fix the problem.

Cc: stable@vger.kernel.org
Fixes: 4bfb53e7d317 ("mips: add <asm-generic/io.h> including")
Reported-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Closes: https://lore.kernel.org/r/99f75c66-4c2d-45dc-a808-b5ba440c7551@app.fastmail.com/
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-legacy.c