From: Jiada Wang Date: Tue, 9 Dec 2014 09:11:35 +0000 (+0900) Subject: serial: imx: Fix issue in software flow control X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7e2fb5aa8d819e8cc0b6815ad627b7e911fabfd9;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 79f485b99c3f..5a7da019f01a 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -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; }