diff mbox series

[v2,2/3] serial: 8250: Add UART_CAP_NOTEMT on PORT_16550A_FSL64

Message ID 20210204161158.643-3-etremblay@distech-controls.com
State New
Headers show
Series Handle UART without interrupt on TEMT using em485 | expand

Commit Message

Eric Tremblay Feb. 4, 2021, 4:11 p.m. UTC
This port doesn't have an interrupt on TEMT available when using
the FIFO mode.

Signed-off-by: Eric Tremblay <etremblay@distech-controls.com>
---
 drivers/tty/serial/8250/8250_port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andy Shevchenko Oct. 1, 2021, 11:50 a.m. UTC | #1
On Thu, Feb 04, 2021 at 11:11:57AM -0500, Eric Tremblay wrote:
> This port doesn't have an interrupt on TEMT available when using


s/This port/Port on Freescale ... (or what is that?)/

> the FIFO mode.


With amended commit message
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>


> Signed-off-by: Eric Tremblay <etremblay@distech-controls.com>

> ---

>  drivers/tty/serial/8250/8250_port.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c

> index 00c2cb64e8a7..dd904f736c61 100644

> --- a/drivers/tty/serial/8250/8250_port.c

> +++ b/drivers/tty/serial/8250/8250_port.c

> @@ -262,7 +262,7 @@ static const struct serial8250_config uart_config[] = {

>  		.tx_loadsz	= 63,

>  		.fcr		= UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10 |

>  				  UART_FCR7_64BYTE,

> -		.flags		= UART_CAP_FIFO,

> +		.flags		= UART_CAP_FIFO | UART_CAP_NOTEMT,

>  	},

>  	[PORT_RT2880] = {

>  		.name		= "Palmchip BK-3103",

> -- 

> 2.17.1

> 


-- 
With Best Regards,
Andy Shevchenko
diff mbox series

Patch

diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 00c2cb64e8a7..dd904f736c61 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -262,7 +262,7 @@  static const struct serial8250_config uart_config[] = {
 		.tx_loadsz	= 63,
 		.fcr		= UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10 |
 				  UART_FCR7_64BYTE,
-		.flags		= UART_CAP_FIFO,
+		.flags		= UART_CAP_FIFO | UART_CAP_NOTEMT,
 	},
 	[PORT_RT2880] = {
 		.name		= "Palmchip BK-3103",