diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-14 10:36:07 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-05-15 17:49:04 +0200 |
commit | 4c07c7dfa0f3575dc3276c544349fbf181381167 (patch) | |
tree | 4b39750ce1284ec0032b21508fa56a8201a7dea1 /arch/mips/ath79/pci.c | |
parent | 93ef85b5598ad2cc23f38d97ed565027b969c0aa (diff) | |
download | linux-4c07c7dfa0f3575dc3276c544349fbf181381167.tar.bz2 |
MIPS: ath79: add PCI IRQ handling code for AR724X SoCs
The PCI Host Controller of the AR724x SoC has a
built-in IRQ controller. The current code does
not supports that, so the IRQ lines wired to this
controller are not usable. This leads to failed
'request_irq' calls:
ath9k 0000:00:00.0: request_irq failed
ath9k: probe of 0000:00:00.0 failed with error -89
This patch adds support for the IRQ controller
in order to make PCI IRQs work.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3496/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath79/pci.c')
-rw-r--r-- | arch/mips/ath79/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c index 72281fb5360f..14f981c295d2 100644 --- a/arch/mips/ath79/pci.c +++ b/arch/mips/ath79/pci.c @@ -10,6 +10,7 @@ #include <linux/pci.h> #include <asm/mach-ath79/ath79.h> +#include <asm/mach-ath79/irq.h> #include <asm/mach-ath79/pci.h> #include "pci.h" @@ -50,7 +51,7 @@ int pcibios_plat_dev_init(struct pci_dev *dev) int __init ath79_register_pci(void) { if (soc_is_ar724x()) - return ar724x_pcibios_init(); + return ar724x_pcibios_init(ATH79_CPU_IRQ_IP2); return -ENODEV; } |