]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: altera: Fix error when INTx is 4
authorLey Foon Tan <lftan@altera.com>
Fri, 4 Dec 2015 22:21:21 +0000 (16:21 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2015 22:21:21 +0000 (16:21 -0600)
commit83936bd0418f8d92b9cbee18df5916ae28f54918
tree7c078837024c5ae69c99510de026544d546e65a7
parente52b6706ac26218cebf49613658077ed3a964d81
PCI: altera: Fix error when INTx is 4

PCI interrupt lines start at 1, not at 0.  So, creates additional one
interrupt when register for irq domain.

Error when PCIe devices have 4 INTx:

  WARNING: CPU: 1 PID: 1 at kernel/irq/irqdomain.c:280
    irq_domain_associate+0x17c/0x1cc()
  error: hwirq 0x4 is too large for dummy

Tested on Ethernet adapter card with multi-functions.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c