Skip to content

Commit ecb988a

Browse files
Steve Shihgregkh
authored andcommitted
tty: serial: 8250: 8250_core: NXP SC16C2552 workaround
NXP SC16C2552 requires that we always write a reset to the RX FIFO and TX FIFO whenever we enable the FIFOs Cc: [email protected] Signed-off-by: Steve Shih <[email protected]> Signed-off-by: David Singleton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 32b2921 commit ecb988a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ static const struct serial8250_config uart_config[] = {
8383
.name = "16550A",
8484
.fifo_size = 16,
8585
.tx_loadsz = 16,
86-
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10,
86+
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10 |
87+
UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT,
8788
.rxtrig_bytes = {1, 4, 8, 14},
8889
.flags = UART_CAP_FIFO,
8990
},

0 commit comments

Comments
 (0)