diff options
author | Huang Shijie <b32955@freescale.com> | 2014-05-20 21:09:47 -0400 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2014-06-03 00:46:56 -0400 |
commit | e84380fe2398fd88790452d36f78e6e8b1d79729 (patch) | |
tree | f92ded9f004a8d304b889a14dbac3df8e4e6adb2 | |
parent | 985fcdf2af051981b66fde64d32f51cf514dc808 (diff) |
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>
-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 060ae9753923..d373fe83da52 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) | |||
1161 | temp |= UCR2_IRTS; | 1161 | temp |= UCR2_IRTS; |
1162 | writel(temp, sport->port.membase + UCR2); | 1162 | writel(temp, sport->port.membase + UCR2); |
1163 | 1163 | ||
1164 | if (USE_IRDA(sport)) { | ||
1165 | /* clear RX-FIFO */ | ||
1166 | int i = 64; | ||
1167 | while ((--i > 0) && | ||
1168 | (readl(sport->port.membase + URXD0) & URXD_CHARRDY)) { | ||
1169 | barrier(); | ||
1170 | } | ||
1171 | } | ||
1172 | |||
1173 | if (!is_imx1_uart(sport)) { | 1164 | if (!is_imx1_uart(sport)) { |
1174 | temp = readl(sport->port.membase + UCR3); | 1165 | temp = readl(sport->port.membase + UCR3); |
1175 | temp |= IMX21_UCR3_RXDMUXSEL | UCR3_ADNIMP; | 1166 | temp |= IMX21_UCR3_RXDMUXSEL | UCR3_ADNIMP; |