linux/drivers/tty/serial
Tony Lindgren 04c7f60ca4 serial: core: Fix serial core port id, including multiport devices
We want to fix the serial core port DEVNAME to use a port id of the
hardware specific controller port instance instead of the port->line.

For example, the 8250 driver sets up a number of serial8250 ports
initially that can be inherited by the hardware specific driver. At that
the port->line no longer decribes the port's relation to the serial core
controller instance.

Let's fix the issue by assigning port->port_id for each serial core
controller port instance.

Fixes: 7d695d8376 ("serial: core: Fix serial_base_match() after fixing controller port name")
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230811103648.2826-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 21:19:22 +02:00
..
8250 serial: 8250: drop lockdep annotation from serial8250_clear_IER() 2023-08-11 21:19:18 +02:00
cpm_uart Merge 6.4-rc5 into tty-next 2023-06-05 07:41:04 +02:00
jsm
21285.c
altera_jtaguart.c
altera_uart.c
amba-pl010.c
amba-pl011.c serial: pl011: set UART011_CR_RXE in pl011_set_termios after port shutdown 2023-05-13 19:32:21 +09:00
apbuart.c
apbuart.h
ar933x_uart.c
arc_uart.c serial: arc_uart: fix of_iomap leak in arc_serial_probe 2023-05-13 19:55:46 +09:00
atmel_serial.c serial: atmel: don't enable IRQs prematurely 2023-06-21 17:54:33 +02:00
atmel_serial.h
bcm63xx_uart.c serial: bcm63xx-uart: add polling support 2023-03-29 10:54:23 +02:00
clps711x.c serial: Make uart_remove_one_port() return void 2023-05-13 19:48:16 +09:00
digicolor-usart.c
dz.c
dz.h
earlycon-riscv-sbi.c
earlycon-semihost.c
earlycon.c
fsl_linflexuart.c
fsl_lpuart.c tty: serial: fsl_lpuart: Clear the error flags by writing 1 for lpuart32 platforms 2023-08-01 07:31:53 +02:00
icom.c
imx_earlycon.c
imx.c tty: serial: imx: fix rs485 rx after tx 2023-06-19 15:41:13 +02:00
ip22zilog.c
ip22zilog.h
Kconfig TTY/Serial driver updates for 6.5-rc1. 2023-07-03 13:14:58 -07:00
kgdb_nmi.c
kgdboc.c
lantiq.c TTY/Serial driver updates for 6.5-rc1. 2023-07-03 13:14:58 -07:00
liteuart.c
lpc32xx_hs.c
ma35d1_serial.c tty: serial: Add Nuvoton ma35d1 serial driver support 2023-06-19 15:42:26 +02:00
Makefile tty: serial: Add Nuvoton ma35d1 serial driver support 2023-06-19 15:42:26 +02:00
max310x.c serial: Switch i2c drivers back to use .probe() 2023-05-30 11:46:05 +01:00
max3100.c
mcf.c
men_z135_uart.c
meson_uart.c tty: serial: meson: Add a new compatible string for the G12A SoC 2023-03-09 17:21:02 +01:00
milbeaut_usio.c
mpc52xx_uart.c
mps2-uart.c
msm_serial.c
mux.c
mvebu-uart.c
mxs-auart.c serial: Use of_property_read_bool() for boolean properties 2023-03-16 13:02:14 +01:00
omap-serial.c
owl-uart.c
pch_uart.c
pic32_uart.c
pmac_zilog.c
pmac_zilog.h
pxa.c
qcom_geni_serial.c serial: qcom-geni: drop bogus runtime pm state update 2023-07-24 09:51:51 +02:00
rda-uart.c
rp2.c
sa1100.c
samsung_tty.c tty: serial: samsung_tty: Use abs() to simplify some code 2023-06-13 12:33:22 +02:00
sb1250-duart.c serial: sb1250-duart: clean up after SIBYTE_BCM1x55 removal 2023-03-29 10:54:39 +02:00
sc16is7xx.c serial: Switch i2c drivers back to use .probe() 2023-05-30 11:46:05 +01:00
sccnxp.c
serial_base_bus.c serial: core: Fix serial core port id, including multiport devices 2023-08-11 21:19:22 +02:00
serial_base.h serial: core: Fix serial core port id, including multiport devices 2023-08-11 21:19:22 +02:00
serial_core.c serial: core: Fix error handling for serial_core_ctrl_device_add() 2023-06-02 08:30:55 +01:00
serial_ctrl.c serial: core: Start managing serial controllers to enable runtime PM 2023-05-31 10:46:59 +01:00
serial_mctrl_gpio.c
serial_mctrl_gpio.h
serial_port.c serial: core: Start managing serial controllers to enable runtime PM 2023-05-31 10:46:59 +01:00
serial_txx9.c
serial-tegra.c
sh-sci.c tty: serial: sh-sci: Fix sleeping in atomic context 2023-07-25 20:30:20 +02:00
sh-sci.h tty: serial: sh-sci: Add support for tx end interrupt handling 2023-04-20 13:47:33 +02:00
sifive.c serial: sifive: Fix sifive_serial_console_setup() section 2023-07-25 20:30:02 +02:00
sprd_serial.c serial: sprd: Drop of_match_ptr for ID table 2023-03-16 13:02:17 +01:00
st-asc.c serial: st-asc: fix typo in property name 2023-06-06 14:42:58 +02:00
stm32-usart.c serial: stm32: Ignore return value of uart_remove_one_port() in .remove() 2023-05-13 19:48:16 +09:00
stm32-usart.h serial: stm32: Remove unused struct stm32_port txdone element 2023-03-09 17:16:11 +01:00
suncore.c
sunhv.c
sunplus-uart.c
sunsab.c
sunsab.h
sunsu.c
sunzilog.c serial: Use of_property_present() for testing DT property presence 2023-03-16 13:02:11 +01:00
sunzilog.h
tegra-tcu.c
timbuart.c
timbuart.h
uartlite.c serial: Make uart_remove_one_port() return void 2023-05-13 19:48:16 +09:00
ucc_uart.c Documentation: devices.txt: reconcile serial/ucc_uart minor numers 2023-07-25 19:29:23 +02:00
vt8500_serial.c
xilinx_uartps.c serial: Make uart_remove_one_port() return void 2023-05-13 19:48:16 +09:00
zs.c
zs.h