summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2015-07-17 11:43:31 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:21:52 +0800
commit7610f32653dc0fa718cb275a795103703975a2c2 (patch)
tree45315acdb4a6bc2d552ba81463c7ae3ebc354565 /drivers/tty/serial/imx.c
parenta75767c774c3202db67a2ab7843b8c0d03f9e8ab (diff)
MLK-11258 tty: serial: imx: disable overrun interrupt during uart port shutdown
Also disable rx fifo overrun interrupt during uart port shutdown. Signed-off-by: Fugang Duan <B38611@freescale.com> (cherry picked from commit: 39eb703f6c9f9359723f3fa22e798b1d21b44c67)
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index b91a4671a5a0..4274b1a49e4e 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -405,12 +405,14 @@ static void imx_stop_rx(struct uart_port *port)
}
}
- temp = readl(sport->port.membase + UCR2);
- writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2);
-
- /* disable the `Receiver Ready Interrrupt` */
+ /* disable the Receiver Ready and overrun Interrrupt */
temp = readl(sport->port.membase + UCR1);
writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1);
+ temp = readl(sport->port.membase + UCR4);
+ writel(temp & ~UCR4_OREN, sport->port.membase + UCR4);
+
+ temp = readl(sport->port.membase + UCR2);
+ writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2);
}
/*