serial: imx: disable the receiver ready interrupt for imx_stop_rx
authorHuang Shijie <b32955@freescale.com>
Fri, 23 May 2014 04:32:54 +0000 (12:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 19:41:32 +0000 (12:41 -0700)
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>
drivers/tty/serial/imx.c

index cdaeeee..3b706ad 100644 (file)
@@ -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);
 }
 
 /*