From: Greg Kroah-Hartman Date: Mon, 20 Jun 2022 07:32:47 +0000 (+0200) Subject: Merge tag 'v5.19-rc3' into tty-next X-Git-Tag: baikal/mips/sdk6.1~5078^2~92 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=ac489990ab1f94307888fc4419befe18e9f5a76d;p=kernel.git Merge tag 'v5.19-rc3' into tty-next We need the tty/serial fixes in here as well. Signed-off-by: Greg Kroah-Hartman --- ac489990ab1f94307888fc4419befe18e9f5a76d diff --cc drivers/tty/serial/8250/8250_port.c index 953b0fadfd4c4,8f32fe9e149e9..3e3d784aa628f --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@@ -1502,9 -1514,11 +1502,11 @@@ static inline void __stop_tx(struct uar struct uart_8250_em485 *em485 = p->em485; if (em485) { - unsigned char lsr = serial_in(p, UART_LSR); + unsigned char lsr = serial_lsr_in(p); u64 stop_delay = 0; + p->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; + if (!(lsr & UART_LSR_THRE)) return; /*