summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorSergey Organov <sorganov@gmail.com>2023-02-01 15:26:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 13:12:02 +0100
commit0fbca4798af88c20a2b9e4c98ac762408a24b668 (patch)
tree518d17b9115e9a52e6ae06878adaf094f879ba49 /drivers/tty
parentserial: imx: do not break from FIFO reading loop prematurely (diff)
downloadlinux-0fbca4798af88c20a2b9e4c98ac762408a24b668.tar.xz
linux-0fbca4798af88c20a2b9e4c98ac762408a24b668.zip
serial: imx: remove redundant USR2 read from FIFO reading loop
There is no need to read USR2 twice at every loop iteration: get rid of the second read. Signed-off-by: Sergey Organov <sorganov@gmail.com> Link: https://lore.kernel.org/r/20230201142700.4346-6-sorganov@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/imx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index ef0b9d353617..c578cdc6d8da 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -906,7 +906,6 @@ static irqreturn_t __imx_uart_rxint(int irq, void *dev_id)
rx = imx_uart_readl(sport, URXD0);
- usr2 = imx_uart_readl(sport, USR2);
if (usr2 & USR2_BRCD) {
imx_uart_writel(sport, USR2_BRCD, USR2);
if (uart_handle_break(&sport->port))