diff options
author | Huang Shijie <b32955@freescale.com> | 2014-05-23 12:32:54 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 12:41:32 -0700 |
commit | 85878399e7bf14bc36d191d3a0de54b2a40f29e7 (patch) | |
tree | a3c65e632dc37f00b41ff13faaf8f33224ef8618 /drivers/tty | |
parent | e2f2786606d49d3aae545c61c04757a64cf7e5f0 (diff) | |
download | linux-85878399e7bf14bc36d191d3a0de54b2a40f29e7.tar.gz linux-85878399e7bf14bc36d191d3a0de54b2a40f29e7.tar.bz2 linux-85878399e7bf14bc36d191d3a0de54b2a40f29e7.zip |
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>
Diffstat (limited to 'drivers/tty')
-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 cdaeeeee6cec..3b706add81a9 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -439,6 +439,10 @@ 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` */ + temp = readl(sport->port.membase + UCR1); + writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1); } /* |