[PATCH 3/3] serial: 8250: remove UART_CAP_TEMT on PORT_16550A_FSL64

From: Eric Tremblay
Date: Thu Jan 28 2021 - 18:49:23 EST


That port does not have an interrupt on TEMT when using
the FIFO mode.

Signed-off-by: Eric Tremblay <etremblay@xxxxxxxxxxxxxxxxxxxx>
---
drivers/tty/serial/8250/8250_of.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_of.c b/drivers/tty/serial/8250/8250_of.c
index 4efc62c0b25c..9a5bb6837949 100644
--- a/drivers/tty/serial/8250/8250_of.c
+++ b/drivers/tty/serial/8250/8250_of.c
@@ -225,6 +225,9 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
&port8250.overrun_backoff_time_ms) != 0)
port8250.overrun_backoff_time_ms = 0;

+ if (port_type != PORT_16550A_FSL64)
+ port8250.capabilities |= UART_CAP_TEMT;
+
ret = serial8250_register_8250_port(&port8250);
if (ret < 0)
goto err_dispose;
--
2.17.1