Skip to content

Commit 9774aa4

Browse files
dlechProject516
authored andcommitted
ev3dev hack: trigger UART Rx earlier
this helps improve EV3 UART sensors overflowing the hardware FIFO at the expense of more CPU usage
1 parent b9ee3d4 commit 9774aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static const struct serial8250_config uart_config[] = {
266266
.fifo_size = 16,
267267
.tx_loadsz = 16,
268268
.fcr = UART_FCR_DMA_SELECT | UART_FCR_ENABLE_FIFO |
269-
UART_FCR_R_TRIG_10,
269+
UART_FCR_R_TRIG_00,
270270
.rxtrig_bytes = {1, 4, 8, 14},
271271
.flags = UART_CAP_FIFO | UART_CAP_AFE,
272272
},

0 commit comments

Comments
 (0)