Files
android_kernel_motorola_sm6225/include/linux
Guilherme G. Piccoli 22b6839b91 PCI: Make pci_msi_setup_pci_dev() non-static for use by arch code
Commit 1851617cd2 ("PCI/MSI: Disable MSI at enumeration even if kernel
doesn't support MSI") changed the location of the code that initialises
dev->msi_cap/msix_cap and then disables MSI/MSI-X interrupts at PCI
probe time in devices that have this flag set. It moved the code from
pci_msi_init_pci_dev() to a new function named pci_msi_setup_pci_dev(),
called by pci_setup_device().

The pseries PCI probing code does not call pci_setup_device(), so since
the aforementioned commit the function pci_msi_setup_pci_dev() is not
called and MSI/MSI-X interrupts are left enabled. Additionally because
dev->msi_cap/msix_cap are not initialised no driver can ever enable
MSI/MSI-X.

To fix this, the pseries PCI probe should manually call
pci_msi_setup_pci_dev(), so this patch makes it non-static.

Fixes: 1851617cd2 ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI")
[mpe: Update change log to mention dev->msi_cap/msix_cap]
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-08-26 21:40:49 +10:00
..
2015-07-17 16:39:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-07-07 22:48:25 +02:00
…
…
…
…
…
2005-04-16 15:20:36 -07:00
…
…
2015-08-03 12:01:54 -04:00
…
…
…
2012-12-02 00:05:12 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-04 13:33:20 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-12-19 22:55:06 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-10-16 18:49:15 -07:00
…
…
…
2013-05-07 18:38:27 -07:00
…
…
…
2014-01-16 10:23:02 +10:30
…
…
…
…
…
…
…
2014-12-31 13:06:50 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-06-18 13:04:05 -07:00
2014-04-18 14:20:48 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-16 21:45:54 +11:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-27 21:02:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-12-11 17:22:27 -08:00
…
2015-07-04 14:04:44 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-07-09 14:58:37 +01:00
…
…
…
…
…
…
…
…
…
…
2015-06-19 01:18:14 +02:00
…
…
2013-10-17 00:36:06 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-07-03 16:08:05 -07:00
2015-05-26 15:23:23 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-29 10:49:51 -07:00
…
…
…
…
…
…
2015-04-11 15:53:35 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2015-06-25 17:00:40 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-06-04 16:53:56 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-04-16 15:20:36 -07:00
…
…
…
…
…
2013-05-27 10:57:53 +09:00
…
…
…
…
…
…
…
…
…
…
…
2015-06-25 17:00:37 -07:00