diff options
author | Huang Shijie <b32955@freescale.com> | 2014-05-23 00:32:54 -0400 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2014-06-03 00:46:57 -0400 |
commit | 1498ea78f6ca25628a2a8f16669646656269b8f5 (patch) | |
tree | 06e3105f8e6aad79aaee0a37763ca4d491c5aa82 | |
parent | e84380fe2398fd88790452d36f78e6e8b1d79729 (diff) |
serial: imx: disable the receiver ready interrupt for imx_stop_rx
This patch disables the receiver ready interrupt for imx_stop_rx.
It reduces the interrupt numbers when the uart is going to close
or suspend.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/imx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index d373fe83da52..e2f93874989b 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
@@ -444,6 +444,10 @@ static void imx_stop_rx(struct uart_port *port) | |||
444 | 444 | ||
445 | temp = readl(sport->port.membase + UCR2); | 445 | temp = readl(sport->port.membase + UCR2); |
446 | writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2); | 446 | writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2); |
447 | |||
448 | /* disable the `Receiver Ready Interrrupt` */ | ||
449 | temp = readl(sport->port.membase + UCR1); | ||
450 | writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1); | ||
447 | } | 451 | } |
448 | 452 | ||
449 | /* | 453 | /* |