]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: 8250_pcilib: Replace deprecated PCI functions
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 30 Sep 2025 07:27:43 +0000 (09:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 10:06:53 +0000 (12:06 +0200)
commitb7cefdb6633824fc4f2e3165974b1aefc343f3b1
tree6005f5f24e240445752bdfcab38220896eae0603
parent0cfadf4bcd283de6d5cb06748dfb1d65e993dbf9
serial: 8250_pcilib: Replace deprecated PCI functions

When the '8250_exar' module is loaded into the kernel, a kernel trace
with 'WARN_ON(legacy_iomap_table[bar])' is dumped to the console,
because the old pci table mapping is still used in '8250_pcilib'.

The old function have been deprecated in commit e354bb84a4c1 ("PCI:
Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()").

The remapping already takes or must take place in the driver that calls
the function 'serial8250_pci_setup_port()'. The remapping should only be
called once via 'pcim_iomap()'. Therefore the remapping moved to the
caller of 'serial8250_pci_setup_port()'.

To replace the outdated/legacy iomap_table processing in '8250_pcilib' the
function signature of 'serial8250_pci_setup_port()' has been extended with
an already iomapped address value. So this can be used directly without
io mapping again.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://patch.msgid.link/20250930072743.791580-1-fe@dev.tdt.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c
drivers/tty/serial/8250/8250_pci.c
drivers/tty/serial/8250/8250_pci1xxxx.c
drivers/tty/serial/8250/8250_pcilib.c
drivers/tty/serial/8250/8250_pcilib.h