linux-stable/drivers/tty/serial/8250
Tony Lindgren d962de6ae5 serial: core: Fix serial core port id to not use port->line
The serial core port id should be serial core controller specific port
instance, which is not always the port->line index.

For example, 8250 driver maps a number of legacy ports, and when a
hardware specific device driver takes over, we typically have one
driver instance for each port. Let's instead add port->port_id to
keep track serial ports mapped to each serial core controller instance.

Currently this is only a cosmetic issue for the serial core port device
names. The issue can be noticed looking at /sys/bus/serial-base/devices
for example though. Let's fix the issue to avoid port addressing issues
later on.

Fixes: 84a9582fd2 ("serial: core: Start managing serial controllers to enable runtime PM")
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20230725054216.45696-3-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-01 07:48:55 +02:00
..
8250.h Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_accent.c
8250_acorn.c
8250_alpha.c
8250_aspeed_vuart.c serial: 8250: synchronize and annotate UART_IER access 2023-05-30 11:45:42 +01:00
8250_bcm2835aux.c
8250_bcm7271.c serial: 8250: lock port in startup() callbacks 2023-05-30 11:45:42 +01:00
8250_boca.c
8250_core.c serial: core: Fix serial core port id to not use port->line 2023-08-01 07:48:55 +02:00
8250_dfl.c
8250_dma.c serial: 8250_dma: Fix DMA Rx rearm race 2023-01-31 11:15:16 +01:00
8250_dw.c
8250_dwlib.c serial: 8250_dw: Preserve original value of DLF register 2023-07-25 20:31:31 +02:00
8250_dwlib.h
8250_early.c serial: 8250: RT288x/Au1xxx code away from core 2023-05-13 19:47:26 +09:00
8250_em.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
8250_exar.c serial: 8250: lock port in startup() callbacks 2023-05-30 11:45:42 +01:00
8250_exar_st16c554.c
8250_fintek.c
8250_fourport.c
8250_fsl.c serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
8250_hp300.c
8250_hub6.c
8250_ingenic.c
8250_ioc3.c
8250_lpc18xx.c
8250_lpss.c
8250_men_mcb.c
8250_mid.c
8250_mtk.c serial: 8250_mtk: Simplify clock sequencing and runtime PM 2023-06-06 14:43:13 +02:00
8250_of.c serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
8250_omap.c serial: 8250_omap: Use force_suspend and resume for system suspend 2023-06-15 12:20:49 +02:00
8250_parisc.c
8250_pci.c Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_pci1xxxx.c serial: 8250_pci1xxxx: Add power management functions to quad-uart driver 2023-02-08 13:10:15 +01:00
8250_pcilib.c serial: 8250_pci: Add serial8250_pci_setup_port definition in 8250_pcilib.c 2023-02-08 13:10:15 +01:00
8250_pcilib.h serial: 8250_pci: Add serial8250_pci_setup_port definition in 8250_pcilib.c 2023-02-08 13:10:15 +01:00
8250_pericom.c
8250_pnp.c
8250_port.c Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_pxa.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
8250_rt288x.c serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED 2023-05-13 19:47:26 +09:00
8250_tegra.c serial: 8250_tegra: Fix an error handling path in tegra_uart_probe() 2023-05-30 12:24:07 +01:00
8250_uniphier.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
Kconfig serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
Makefile serial: 8250: RT288x/Au1xxx code away from core 2023-05-13 19:47:26 +09:00
serial_cs.c