Re: [PATCH v2 2/2] serial: 8250_lpss: Enable PSE UART Auto Flow Control

From: Jiri Slaby
Date: Wed Oct 06 2021 - 00:46:20 EST


On 05. 10. 21, 15:30, Andy Shevchenko wrote:
From: Aman Kumar <aman.kumar@xxxxxxxxx>

Add a call to the custom ->set_termios() which has implementation about
changing the state of RTS and CTS.

Worth noting that:
config SERIAL_8250_LPSS
already does:
select SERIAL_8250_DWLIB

Reviewed-by: Jiri Slaby <jirislaby@xxxxxxxxxx>

Signed-off-by: Aman Kumar <aman.kumar@xxxxxxxxx>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
v2: no changes
drivers/tty/serial/8250/8250_lpss.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_lpss.c
index 398d2c4a40e3..d3bafec7619d 100644
--- a/drivers/tty/serial/8250/8250_lpss.c
+++ b/drivers/tty/serial/8250/8250_lpss.c
@@ -164,6 +164,9 @@ static int ehl_serial_setup(struct lpss8250 *lpss, struct uart_port *port)
* matching with the registered General Purpose DMA controllers.
*/
up->dma = dma;
+
+ port->set_termios = dw8250_do_set_termios;
+
return 0;
}



--
js
suse labs