serial: 8250: fix programmable transmit interrupt mode

fix __do_stop_tx IER clear UART_IER_PTIME bit.

Fixes: e480347688 ("serial: 8250: enable Programmable THRE Interrupt for tx")
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ie82bdb4dc7cb35ada9cd422e575412eb63d5bf45
This commit is contained in:
Steven Liu
2022-01-04 17:14:42 +08:00
committed by Tao Huang
parent a6a0e30750
commit 79b9c780ba

View File

@@ -151,6 +151,9 @@ static inline bool serial8250_clear_THRI(struct uart_8250_port *up)
if (!(up->ier & UART_IER_THRI))
return false;
up->ier &= ~UART_IER_THRI;
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
up->ier &= ~UART_IER_PTIME;
#endif
serial_out(up, UART_IER, up->ier);
return true;
}