[PATCH] amba-pl011: simplify TX handling
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Mar 18 16:43:48 PDT 2015
On Wed, Mar 18, 2015 at 05:41:57PM +0000, Dave P Martin wrote:
> * uart_wait_until_sent()'s timeout calculations aim to wait for
> no longer than it takes the FIFO to drain. However, this function
> can get called when the serial_core xmit queue for the port is
> very non-empty -- meaning that the FIFO continues to be topped
> up for some time. This can cause more data to be lost.
The code used to wait for the xmit queue to empty (up to closing_wait)
before shutting the port down, which defaulted to 30 seconds. If the
xmit queue doesn't drain in 30 seconds, it probably never will.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list