diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-05 20:29:29 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-05 20:29:29 +0000 |
commit | da900edca4111536e0523526fcebcd7cb2548c21 (patch) | |
tree | 31158588dcf6435df650e8559b159c512510e9b2 /target/linux/ar71xx/files | |
parent | 903cab07f2c51d95660e57d839978afed8bfd8d5 (diff) |
ar71xx: don't init PCI irqs on the AR7240 if the PCIe subsystem are in reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20007 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c index 212ff1299..13d25c43f 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c @@ -158,8 +158,15 @@ static struct irqaction ar724x_pci_irqaction = { static void __init ar724x_pci_irq_init(void) { + u32 t; int i; + t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE); + if (t & (AR724X_RESET_PCIE | AR724X_RESET_PCIE_PHY | + AR724X_RESET_PCIE_PHY_SERIAL)) { + return; + } + ar71xx_ip2_irq_handler = ar724x_pci_irq_dispatch; ar724x_pci_wr(AR724X_PCI_REG_INT_MASK, 0); |