diff options
| -rw-r--r-- | drivers/tty/serial/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 65d7a2bfb6d2..c2fc6bef7a6f 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
| @@ -316,7 +316,7 @@ static u32 imx_uart_readl(struct imx_port *sport, u32 offset) | |||
| 316 | * differ from the value that was last written. As it only | 316 | * differ from the value that was last written. As it only |
| 317 | * clears after being set, reread conditionally. | 317 | * clears after being set, reread conditionally. |
| 318 | */ | 318 | */ |
| 319 | if (sport->ucr2 & UCR2_SRST) | 319 | if (!(sport->ucr2 & UCR2_SRST)) |
| 320 | sport->ucr2 = readl(sport->port.membase + offset); | 320 | sport->ucr2 = readl(sport->port.membase + offset); |
| 321 | return sport->ucr2; | 321 | return sport->ucr2; |
| 322 | break; | 322 | break; |
