[PATCH] Correctly flush 8250 buffers, notify ldisc of line status changes.

David Woodhouse
2004-11-05T13:16:09Z

We weren't flushing the TX FIFO on 8250 uarts when uart_flush_buffer()
was called. This adds a flush_buffer() method to the uart_port
operations and calls it from uart_flush_buffer().

This also adds a method to the line discipline which is called upon line
status changes, and uses the helper function for that to clean up the
uart hardware drivers slightly, removing the explicit wakeup on
delta_msr_wait which is used for TIOCMIWAIT.

I'll be putting together a line discipline which actually needs this
callback shortly.

--
dwmw2