diff options
author | Fugang Duan <b38611@freescale.com> | 2015-07-17 11:43:31 +0800 |
---|---|---|
committer | Fugang Duan <b38611@freescale.com> | 2015-07-22 13:41:38 +0800 |
commit | 8f50b1ea88c2f691fab8067551852db5a69e5b7e (patch) | |
tree | ea7463b97bd4401afa3b98adca2962ae32414b67 /drivers | |
parent | 82ed490b9fa9fc1fd066cd22b2f57e2a59a6c631 (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')
-rw-r--r-- | drivers/tty/serial/imx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index e75e298c8478..65868f2c2fbb 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -469,12 +469,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); } /* |