From: Heikki Krogerus <heikki.kroge...@linux.intel.com>

It should not be used together with Auto Flow Control, and
Auto Flow Control is always enabled on Baytrail.

Signed-off-by: Heikki Krogerus <heikki.kroge...@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
(cherry picked from commit 716e115cd7f75e3ab717f467432fd4b8cd23ee2c)

Signed-off-by: Ng, Wei Tee <wei.tee...@intel.com>
---
 drivers/tty/serial/8250/8250_pci.c |   13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/tty/serial/8250/8250_pci.c 
b/drivers/tty/serial/8250/8250_pci.c
index 0754db6..eb9bd91 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1333,9 +1333,6 @@ ce4100_serial_setup(struct serial_private *priv,
 #define BYT_PRV_CLK_N_VAL_SHIFT                16
 #define BYT_PRV_CLK_UPDATE             (1 << 31)
 
-#define BYT_GENERAL_REG                        0x808
-#define BYT_GENERAL_DIS_RTS_N_OVERRIDE (1 << 3)
-
 #define BYT_TX_OVF_INT                 0x820
 #define BYT_TX_OVF_INT_MASK            (1 << 1)
 
@@ -1369,16 +1366,6 @@ 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);
 
-       /*
-        * If auto-handshake mechanism is not enabled,
-        * disable rts_n override
-        */
-       reg = readl(p->membase + BYT_GENERAL_REG);
-       reg &= ~BYT_GENERAL_DIS_RTS_N_OVERRIDE;
-       if (termios->c_cflag & CRTSCTS)
-               reg |= BYT_GENERAL_DIS_RTS_N_OVERRIDE;
-       writel(reg, p->membase + BYT_GENERAL_REG);
-
        serial8250_do_set_termios(p, termios, old);
 }
 
-- 
1.7.9.5

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to