ramips: improve interrupt mapping
authorNeilBrown <neil@brown.name>
Sat, 12 May 2018 19:57:46 +0000 (12:57 -0700)
committerJohn Crispin <john@phrozen.org>
Mon, 14 May 2018 14:23:59 +0000 (16:23 +0200)
commit5f7396ebef09b224edf08b0bda113613a42f0928
tree96106955afae34887a7c72229eb6ab385b6e3c5b
parent2ad4daf5794b08878467c1dac5bef7487109e4da
ramips: improve interrupt mapping

As the Interrupts for the PCI adapters are listed in
devicetree we shouldn't need to have them explicit in the code.

The simplest way to do this is to use of_irq_parse_and_map_pci()
and specify an interrupt-map which identifies the different
PCI hosts by bus/slot numbers.
This has the advantage that the hwirq number are mapped to virq
numbers for us, so the ugly hack can go.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c