aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250_lpss.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-10-05 16:30:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-10 15:22:34 +0200
commit7c4fc082f50431cc0814b47595ec9f9cca285993 (patch)
treeb3b8a04a70d1af33402a464794c538ebf69ccd64 /drivers/tty/serial/8250/8250_lpss.c
parentserial: 8250_dw: Fix the trivial typo in the comment (diff)
downloadlinux-dev-7c4fc082f50431cc0814b47595ec9f9cca285993.tar.xz
linux-dev-7c4fc082f50431cc0814b47595ec9f9cca285993.zip
serial: 8250_lpss: Extract dw8250_do_set_termios() for common use
Some of the code currently used in dw8250_set_termios(), byt_set_termios() may be reused by other methods in the future. Extract it to a common helper function. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20211005133026.21488-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_lpss.c')
-rw-r--r--drivers/tty/serial/8250/8250_lpss.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_lpss.c
index 848d81e3838c..398d2c4a40e3 100644
--- a/drivers/tty/serial/8250/8250_lpss.c
+++ b/drivers/tty/serial/8250/8250_lpss.c
@@ -100,11 +100,7 @@ static void byt_set_termios(struct uart_port *p, struct ktermios *termios,
reg |= BYT_PRV_CLK_EN | BYT_PRV_CLK_UPDATE;
writel(reg, p->membase + BYT_PRV_CLK);
- p->status &= ~UPSTAT_AUTOCTS;
- if (termios->c_cflag & CRTSCTS)
- p->status |= UPSTAT_AUTOCTS;
-
- serial8250_do_set_termios(p, termios, old);
+ dw8250_do_set_termios(p, termios, old);
}
static unsigned int byt_get_mctrl(struct uart_port *port)