]> git.itanic.dy.fi Git - linux-stable/commit
staging: mt7621-pci: improve interrupt mapping
authorNeilBrown <neil@brown.name>
Fri, 4 May 2018 04:58:36 +0000 (14:58 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:09:23 +0000 (19:09 -0700)
commit46d093124df4ce37c3805445bba9e7843df05d3e
treeef6a6ea3e924f8ff3bcc4337cca78fd030cf655b
parent66fbebb631da6521e4b820864b95af9b8b7744ea
staging: mt7621-pci: 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>
drivers/staging/mt7621-dts/mt7621.dtsi
drivers/staging/mt7621-pci/pci-mt7621.c