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)
committerHelge Deller <deller@gmx.de>
Wed, 31 Jul 2013 21:42:32 +0000 (23:42 +0200)
commitdd5e6d6a3db09b16b7c222943977865eead88cc3
treeb026782954cdc18bf52c82940a4bb34a076d3cdc
parent5a0ce2dc218ea9a6e659dcc5a4827975cb13104f
parisc: Fix interrupt routing for C8000 serial ports

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>
Cc: <stable@vger.kernel.org> # 3.10
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/parisc-device.h
arch/parisc/kernel/inventory.c
drivers/parisc/iosapic.c
drivers/tty/serial/8250/8250_gsc.c