diff options
author | Huang Shijie <b32955@freescale.com> | 2014-05-21 09:09:47 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 12:40:43 -0700 |
commit | 8eccd0cd2106fbe0acc6bec3701e69e171353f25 (patch) | |
tree | 69e88314befcf4ad5ff6821318a7883d9e346ce6 /drivers/tty/serial | |
parent | 772f89910a8a1d1dd9dade2eec3125f283a9db63 (diff) | |
download | op-kernel-dev-8eccd0cd2106fbe0acc6bec3701e69e171353f25.zip op-kernel-dev-8eccd0cd2106fbe0acc6bec3701e69e171353f25.tar.gz |
serial: imx: remove the redundant code
In the imx_startup(), we will reset the uart port which will reset all
the FIFOs, including the URXD.
So the code to clear the RX FIFO is redundant. Just remove it.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/imx.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 060ae97..d373fe8 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1161,15 +1161,6 @@ static int imx_startup(struct uart_port *port) temp |= UCR2_IRTS; writel(temp, sport->port.membase + UCR2); - if (USE_IRDA(sport)) { - /* clear RX-FIFO */ - int i = 64; - while ((--i > 0) && - (readl(sport->port.membase + URXD0) & URXD_CHARRDY)) { - barrier(); - } - } - if (!is_imx1_uart(sport)) { temp = readl(sport->port.membase + UCR3); temp |= IMX21_UCR3_RXDMUXSEL | UCR3_ADNIMP; |