[PATCH 03/16] tty: serial: 8250_core: read only RX if there is something in the FIFO

Sebastian Andrzej Siewior bigeasy at linutronix.de
Tue Feb 10 01:32:17 PST 2015


On 02/10/2015 12:34 AM, Peter Hurley wrote:
> The "too much work" message means serial8250_handle_irq() is returning 0,
> ie., not handled. Which in turn means IIR indicates no interrupt is pending
> (UART_IIR_NO_INT == 1).

The OMAP UART for instance have two possible TX-IRQ handling. The
default is to fire the interrupt once there is room for at least one
byte in the FIFO. I set the OMAP_UART_SCR_TX_EMPTY bit to get the same
behavior as the 8250 driver expects (interrupt while the FIFO is empty).
Without this bit set I've seen the message from time to time.

Sebastian



More information about the linux-arm-kernel mailing list