diff options
author | Fugang Duan <b38611@freescale.com> | 2016-01-08 13:36:05 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:26:02 +0800 |
commit | af9978cc8d783b23256a4c7cbece8af4b601128e (patch) | |
tree | 88e01182a8d7992b99f6f54e1c3732a73c9d004b /drivers/tty/serial/imx.c | |
parent | 8e80ee77c7e952e96710316ae3525a99986fed2a (diff) |
MLK-12161 tty: serial: imx: only enable RTSD interrupt for hw flow control
Only enable RTSD interrupt for hw flow control, otherwise RTS_B signal
has some external signal disturbance without config RTS_B select input.
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 471e8c43aca3)
Conflicts:
drivers/tty/serial/imx.c
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | drivers/tty/serial/imx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 41aa463bee8a..0e7736708423 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1309,7 +1309,9 @@ static int imx_startup(struct uart_port *port) temp = readl(sport->port.membase + UCR1); if (!sport->dma_is_inited) temp |= UCR1_RRDYEN; - temp |= UCR1_RTSDEN | UCR1_UARTEN; + if (sport->have_rtscts) + temp |= UCR1_RTSDEN; + temp |= UCR1_UARTEN; writel(temp, sport->port.membase + UCR1); temp = readl(sport->port.membase + UCR4); |