Centos-kernel-stream-9/drivers/tty
Lenny Szubowicz 9eb91ea09e Revert "tty/serial: 8250: Sort drivers in Makefile"
JIRA: https://issues.redhat.com/browse/RHEL-69911

Upstream Status: RHEL9 only

This reverts cs9 commit 9291d2620e.

cs9 commit 9291d2620e is a backport of upstream commit
66ebe67d1b68 ("tty/serial: 8250: Sort drivers in Makefile")

Changing the order that source files are compiled and linked into
the 8250 serial line driver also changes the order that the init
routines in that driver are invoked. This can result in ttySn
devices being enumerated differently, depending on configuration
details.

In the specific case of this JIRA, in RHEL 9.4:

 1.1 Routine pciserial_init_one in drivers/tty/serial/8250/8250_pci.c
     configures a PCI serial port as ttyS0.
 1.2 Routine dw8250_probe in drivers/tty/serial/8250/8250_dw.c
     configures two serial ports enumerated by ACPI as ttyS1, ttyS2.

But in RHEL 9.5 where 8250_dw.c is moved ahead of 8250_pci.c:

 2.1 Routine dw8250_probe in drivers/tty/serial/8250/8250_dw.c
     configures two serial ports enumerated by ACPI as ttyS0, ttyS1.
 2.2 Routine pciserial_init_one in drivers/tty/serial/8250/8250_pci.c
     configures a PCI serial port as ttyS2.

If at all possible, RHEL should avoid such user visible changes
in a minor release. Therefore, for the duration of RHEL 9.x only,
revert this change. But for RHEL 10, stay with the upstream change.

Signed-off-by: Lenny Szubowicz <lszubowi@redhat.com>
2025-06-27 13:28:48 -04:00
..
hvc tty: hvc-iucv: Make use of iucv_alloc_device() 2025-05-12 13:03:11 +02:00
ipwireless
serdev
serial Revert "tty/serial: 8250: Sort drivers in Makefile" 2025-06-27 13:28:48 -04:00
vt vt: remove superfluous CONFIG_HW_CONSOLE 2024-11-20 11:19:51 +01:00
Kconfig vt: remove superfluous CONFIG_HW_CONSOLE 2024-11-20 11:19:51 +01:00
Makefile
amiserial.c
ehv_bytechan.c
goldfish.c
mips_ejtag_fdc.c
moxa.c
mxser.c
n_gsm.c tty: n_gsm: Fix use-after-free in gsm_cleanup_mux 2024-10-29 07:42:27 +00:00
n_hdlc.c
n_null.c
n_tty.c
nozomi.c
pty.c
rpmsg_tty.c
synclink_gt.c
sysrq.c mm: remove arguments of show_mem() 2024-10-01 11:17:31 -04:00
tty.h
tty_audit.c
tty_baudrate.c
tty_buffer.c
tty_io.c tty, proc, kernfs, random: Use copy_splice_read() 2024-09-05 20:35:54 -04:00
tty_ioctl.c
tty_jobctrl.c
tty_ldisc.c tty: add the option to have a tty reject a new ldisc 2024-07-19 19:37:50 -04:00
tty_ldsem.c
tty_mutex.c
tty_port.c
ttynull.c
vcc.c