ar71xx: don't init PCI irqs on the AR7240 if the PCIe subsystem are in reset
SVN-Revision: 20007
This commit is contained in:
parent
52f03512dc
commit
97c35a7dde
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue