]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Netlogic: MSI enable fix for XLS
authorGanesan Ramalingam <ganesanr@broadcom.com>
Tue, 8 May 2012 12:41:56 +0000 (18:11 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jul 2012 16:57:19 +0000 (18:57 +0200)
commitce0d6b8fbf7d29b83bb72f2a6ecb37cb1352905d
tree2eefd5b939eff790a01f523a5bf6ec00db6bdbea
parente1b53e3c9c0110452531496541dad2c04441af6c
MIPS: Netlogic: MSI enable fix for XLS

MSI interrupts do not work on XLS after commit c0b99e4
( "PCI: msi: Disable msi interrupts when we initialize a pci device" )
because the change disables MSI interrupts on the XLS PCIe bridges
during the PCI enumeration.

Fix this by enabling MSI interrupts on the bridge in the
arch_setup_msi_irq() function. A new function xls_get_pcie_link()
has been introduced to get the PCI device corresponding to the
top level PCIe bridge on which MSI has to be enabled.

Also, update get_irq_vector() to use the new xls_get_pcie_link()
function and PCI_SLOT() macro for determining the IRQ of PCI devices.

Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3753/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-xlr.c