mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
serial: 8250: set fifo rx trigger 1/2 of fifo
To reduce the uart interrupts, which may cause: serial8250: too much work for irq xx Change-Id: I89e0d990677e4cffae431e60521b3e16e8381f05 Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
@@ -2803,7 +2803,9 @@ serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
|
||||
}
|
||||
|
||||
serial8250_set_divisor(port, baud, quot, frac);
|
||||
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
up->fcr = UART_FCR_ENABLE_FIFO | UART_FCR_T_TRIG_10 | UART_FCR_R_TRIG_10;
|
||||
#endif
|
||||
/*
|
||||
* LCR DLAB must be set to enable 64-byte FIFO mode. If the FCR
|
||||
* is written without DLAB set, this mode will be disabled.
|
||||
|
||||
Reference in New Issue
Block a user