mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 13:11:45 +00:00
serial: imx: Fix issue in software flow control
After send out x_char in UART driver, x_char needs to be cleared by UART driver itself, otherwise data in TXFIFO can no longer be sent out. Also tx counter needs to be increased to keep track of correct number of transmitted data. Signed-off-by: Jiada Wang <jiada_wang@mentor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f026d6b7c
commit
7e2fb5aa8d
@ -471,6 +471,8 @@ static inline void imx_transmit_buffer(struct imx_port *sport)
|
||||
if (sport->port.x_char) {
|
||||
/* Send next char */
|
||||
writel(sport->port.x_char, sport->port.membase + URTX0);
|
||||
sport->port.icount.tx++;
|
||||
sport->port.x_char = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user