[PATCH 00/33] tty: summer cleanup

Jiri Slaby (SUSE)
2025-06-11T10:03:22Z

Hi,

this is (yet) another series of various cleanup in tty of issues which
popped up at me during a larger rework.

Jiri Slaby (SUSE) (33):
tty: introduce and use tty_port_tty_vhangup() helper
powerpc/legacy_serial: cache serial port and info in add_legacy_port()
powerpc/legacy_serial: use %pa for phys_addr_t prints
m68k: remove unneeded tty includes
powerpc/powermac: remove unneeded tty includes
tty: vt: use sane types for userspace API
tty: vt: use _IO() to define ioctl numbers
serial: 8250: sanitize uart_port::serial_{in,out}() types
serial: 8250: remove CONFIG_SERIAL_8250_RSA inline macros from code
serial: 8250: invert conditions in RSA functions
serial: 8250: put RSA functions to their namespace
serial: 8250: move RSA functions to 8250_rsa.c
serial: 8250: extract serial8250_startup_special()
serial: 8250: extract serial8250_set_TRG_levels()
serial: 8250: extract serial8250_THRE_test()
serial: 8250: extract serial8250_initialize()
serial: 8250: extract serial8250_clear_interrupts()
serial: 8250: extract serial8250_set_mini()
serial: 8250: extract serial8250_set_trigger_for_slow_speed()
serial: 8250: extract serial8250_set_afe()
serial: 8250: extract serial8250_set_errors_and_ignores
serial: 8250: extract serial8250_set_ier()
serial: 8250: extract serial8250_set_efr()
serial: 8250: extract serial8250_set_fcr()
serial: 8250: lcr compute cleanup
serial: 8250: drop unused frac from serial8250_do_get_divisor()
serial: 8250: extract serial_get_or_create_irq_info()
serial: 8250: remove debug prints from ISR
serial: 8250: drop DEBUG_AUTOCONF() macro
serial: 8250: invert serial8250_register_8250_port() CIR condition
serial: 8250: invert condition to avoid a goto label
serial: 8250: use hashtable
serial: 8250_omap: use uart_port pointer when available

arch/m68k/amiga/config.c | 2 -
arch/m68k/apollo/config.c | 2 -
arch/m68k/atari/config.c | 1 -
arch/m68k/mac/config.c | 2 -
arch/m68k/q40/config.c | 2 -
arch/powerpc/kernel/legacy_serial.c | 62 +-
arch/powerpc/platforms/powermac/setup.c | 2 -
drivers/isdn/capi/capi.c | 8 +-
drivers/staging/greybus/uart.c | 7 +-
drivers/tty/serial/8250/8250.h | 8 +
drivers/tty/serial/8250/8250_core.c | 316 +++++-----
drivers/tty/serial/8250/8250_dw.c | 34 +-
drivers/tty/serial/8250/8250_em.c | 4 +-
drivers/tty/serial/8250/8250_ingenic.c | 8 +-
drivers/tty/serial/8250/8250_ioc3.c | 4 +-
drivers/tty/serial/8250/8250_lpc18xx.c | 2 +-
drivers/tty/serial/8250/8250_omap.c | 53 +-
drivers/tty/serial/8250/8250_pci.c | 6 +-
drivers/tty/serial/8250/8250_port.c | 736 +++++++++++-------------
drivers/tty/serial/8250/8250_rsa.c | 92 +++
drivers/tty/serial/8250/8250_rt288x.c | 4 +-
drivers/tty/serial/8250/8250_uniphier.c | 4 +-
drivers/tty/serial/serial_core.c | 7 +-
drivers/tty/tty_port.c | 12 +-
drivers/usb/class/cdc-acm.c | 7 +-
drivers/usb/serial/usb-serial.c | 7 +-
include/linux/serial_8250.h | 4 +-
include/linux/serial_core.h | 4 +-
include/linux/tty_port.h | 12 +-
include/uapi/linux/vt.h | 78 +--
net/bluetooth/rfcomm/tty.c | 7 +-
31 files changed, 751 insertions(+), 746 deletions(-)

--
2.49.0