parisc: Fix interrupt routing for C8000 serial ports
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 30 Jul 2013 00:02:16 +0000 (02:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:21 +0000 (18:35 -0700)
commit8a08a2ffd5719ed580862a2e525b8615a8b56a6d
treef1f7f9b8978d14bdad375be96818a1e337327c2c
parentb81ed4057ca3d8a069b1d7f7919263b31776d208
parisc: Fix interrupt routing for C8000 serial ports

commit dd5e6d6a3db09b16b7c222943977865eead88cc3 upstream.

We can't use dev->mod_index for selecting the interrupt routing entry,
because it's not an index into interrupt routing table. It will be even
wrong on a machine with 2 CPUs (4 cores). But all needed information is
contained in the PAT entries for the serial ports. mod[0] contains the
iosapic address and mod_info has some indications for the interrupt
input (at least it looks like it). This patch implements the searching
for the right iosapic and uses this interrupt input information.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/parisc-device.h
arch/parisc/kernel/inventory.c
drivers/parisc/iosapic.c
drivers/tty/serial/8250/8250_gsc.c