Skip to content

Commit 55c3cb1

Browse files
dirkbehmegregkh
authored andcommitted
serial: imx: remove unneeded imx_transmit_buffer() from imx_start_tx()
Use imx_start_tx() just to enable the TX interrupt. It's the job of the TX interrupt ISR to fill the transmit buffer, then. If the transmit buffer is empty, the TX interrupt should be executed as soon as the start_tx() enables the interrupt, so there is no reason for the extra imx_transmit_buffer() call, here. Remove it. Signed-off-by: Dirk Behme <[email protected]> Signed-off-by: Andy Lowe <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7363181 commit 55c3cb1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/tty/serial/imx.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,6 @@ static void imx_start_tx(struct uart_port *port)
621621
imx_dma_tx(sport);
622622
return;
623623
}
624-
625-
if (readl(sport->port.membase + uts_reg(sport)) & UTS_TXEMPTY)
626-
imx_transmit_buffer(sport);
627624
}
628625

629626
static irqreturn_t imx_rtsint(int irq, void *dev_id)

0 commit comments

Comments
 (0)