mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user