ath79: fix irq assignment for pci-ar71xx driver
authorMatt Merhar <mattmerhar@protonmail.com>
Mon, 30 Jul 2018 18:11:09 +0000 (14:11 -0400)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 18:22:44 +0000 (20:22 +0200)
commitaf3b1756f00bfd1e6726d85ce23336112201afce
tree067b4ce9cb97b2e4768388ca8ac5a670e7c58782
parentaf9a96d23eda3c9989e8b80c9ad2a9c41334aefd
ath79: fix irq assignment for pci-ar71xx driver

In the new DT-based pci-ar71xx driver, ar71xx_pci_irq_init() was being
called before populating the PCI controller's device_node struct member.
This led to no IRQ being assigned to connected PCI devices (e.g. ath9k
cards) and caused them to be non-functional aside from simply being
detected.

The previous errors encountered in dmesg were: "irq: no irq domain found
for /ahb/apb/pcie-controller@180c0000 !". /proc/interrupts listed an IRQ
of 0 for the cards.

While this has been only been tested on a yet-to-be-merged RouterStation
Pro target, it should also fix the broken wifi people have reported for
the ath79 WNDR3800 target.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
target/linux/ath79/patches-4.14/0020-MIPS-ath79-turn-pci-ar71xx-driver-into-a-pure-OF-dri.patch