]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: Replace driver usage of UPF_CONS_FLOW
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 6 May 2026 12:15:57 +0000 (14:21 +0206)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 14:58:38 +0000 (16:58 +0200)
commitbf558715d91cfa28f283de7105a879a92da31fb7
tree9e5f6b940bf13750bb73dc9e2a9269c9d3fe7cf2
parent9c7eb1c9c3e3bfecb556fc8fa1b68939385444de
serial: Replace driver usage of UPF_CONS_FLOW

Rather than using the UPF_CONS_FLOW bit of uart_port.flags to track
the user configuration of console flow control, use the newly added
uart_port.cons_flow (via its getter/setter functions).

A coccinelle script was used to perform the search/replace.

Note1: The sh-sci driver is blindly copying platform data configuration
       flags to uart_port.flags. Thus UPF_CONS_FLOW could get set for
       uart_port.flags. A follow-up commit will address this.

Note2: The samsung_tty driver is using UPF_CONS_FLOW as a platform data
       configuration flag. However, the driver explicitly checks for
       this configuration flag and thus setting UPF_CONS_FLOW in
       uart_port.flags is avoided.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Link: https://patch.msgid.link/20260506121606.5805-3-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c
drivers/tty/serial/bcm63xx_uart.c
drivers/tty/serial/omap-serial.c
drivers/tty/serial/pch_uart.c
drivers/tty/serial/pxa.c
drivers/tty/serial/samsung_tty.c
drivers/tty/serial/serial_txx9.c
drivers/tty/serial/sunsu.c