[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1244555211-15618-4-git-send-email-os@emlix.com>
Date: Tue, 9 Jun 2009 15:46:46 +0200
From: "Oskar Schirmer" <os@...ix.com>
To: Sascha Hauer <kernel@...gutronix.de>
Cc: linux-kernel@...r.kernel.org, Fabian Godehardt <fg@...ix.com>,
Oskar Schirmer <os@...ix.com>
Subject: [PATCH 3/8] imx: serial: notify higher layers in case xmit IRQ was not called
From: Fabian Godehardt <fg@...ix.com>
upper layers, namely line discipline, need to be notified
when transmission of more data is possible. For spurious
cases, where IRQ handling does not supply notification
for sure, it is given additionally here, when data has just
been transmitted and space in the buffer will most probably
be available.
Signed-off-by: Fabian Godehardt <fg@...ix.com>
Signed-off-by: Oskar Schirmer <os@...ix.com>
---
drivers/serial/imx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index 5ee325f..afcec9e 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -308,6 +308,9 @@ static inline void imx_transmit_buffer(struct imx_port *sport)
break;
}
+ if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
+ uart_write_wakeup(&sport->port);
+
if (uart_circ_empty(xmit))
imx_stop_tx(&sport->port);
}
--
1.5.3.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists