]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/PCI: Disable MSI/MSI-X interrupts at PCI probe time in OF case
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Mon, 24 Aug 2015 12:42:47 +0000 (22:42 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 26 Aug 2015 11:40:50 +0000 (21:40 +1000)
commit881ae49bc984bdb9a97116b731e71ee5f40ff7c7
treea4cec1e0207fe2384e00940857ef83db840da4f9
parent7d3845e60bc7ba58bce5d71ad2b109fdabc99f32
powerpc/PCI: Disable MSI/MSI-X interrupts at PCI probe time in OF case

Since commit fa56ee1fde63 ("PCI/MSI: Disable MSI at enumeration even if
kernel doesn't support MSI"), the setup of dev->msi_cap/msix_cap and the
disable of MSI/MSI-X interrupts isn't being done at PCI probe time, as
the logic responsible for this was moved in the aforementioned commit
from pci_device_add() to pci_setup_device(). The latter function is not
reachable on PowerPC pseries platform during Open Firmware PCI probing
time.

This exhibits as drivers not being able to enable MSI, eg:

  bnx2x 0000:01:00.0: no msix capability found

This patch calls pci_msi_setup_pci_dev() explicitly to disable MSI/MSI-X
during PCI probe time on pSeries platform.

Fixes: fa56ee1fde63 ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI")
[mpe: Flesh out change log and clarify comment]
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/pci_of_scan.c