serial: make 8250 timeout use the specified IRQ handler
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 4 Dec 2011 23:42:21 +0000 (18:42 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:14:13 +0000 (19:14 -0800)
commita0431476e95d18bb65349e7bcf98eb10b5ad00b9
treefc736bea45ef5201a541d2c1228f664a137023c2
parent3986fb2ba67bb30cac18b0cff48c88d69ad37681
serial: make 8250 timeout use the specified IRQ handler

The current 8250 timeout code duplicates the code path in
serial8250_default_handle_irq and then serial8250_handle_irq
i.e. reading iir, check for IIR_NO_INT, and then calling
serial8250_handle_port.

So the immediate thought is to replace the duplicated code
with a call to serial8250_default_handle_irq.

But this highlights a problem.  We let 8250 driver variants
use their own IRQ handler via specifying their own custom
->handle_irq, but in the event of a timeout, we ignore their
handler and implicitly run serial8250_default_handle_irq instead.

So, go through the struct to get ->handle_irq and call that,
which for most will still be serial8250_default_handle_irq.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/8250.c