]> www.infradead.org Git - linux.git/commit
serial: bcm63xx-uart: fix tx after conversion to uart_port_tx_limited()
authorJonas Gorski <jonas.gorski@gmail.com>
Thu, 6 Jun 2024 19:56:33 +0000 (12:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 14:14:48 +0000 (16:14 +0200)
commitea55c65dedf40e9c1911dc1e63e26bc9a59692b9
tree812ad9ea5414ddaf2976b0295fabbe8f8e826bff
parent9bb43b9e8d9a288a214e9b17acc9e46fda3977cf
serial: bcm63xx-uart: fix tx after conversion to uart_port_tx_limited()

When bcm63xx-uart was converted to uart_port_tx_limited(), it implicitly
added a call to stop_tx(). This causes garbage to be put out on the
serial console. To fix this, pass UART_TX_NOSTOP in flags, and manually
call stop_tx() ourselves analogue to how a similar issue was fixed in
commit 7be50f2e8f20 ("serial: mxs-auart: fix tx").

Fixes: d11cc8c3c4b6 ("tty: serial: use uart_port_tx_limited()")
Cc: stable@vger.kernel.org
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Doug Brown <doug@schmorgal.com>
Link: https://lore.kernel.org/r/20240606195632.173255-4-doug@schmorgal.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bcm63xx_uart.c