diff options
Diffstat (limited to 'drivers/pci/hotplug/pnv_php.c')
-rw-r--r-- | drivers/pci/hotplug/pnv_php.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index da1bbf3eda55..6d36b7630491 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/hotplug/pnv_php.c | |||
@@ -826,6 +826,14 @@ static void pnv_php_enable_irq(struct pnv_php_slot *php_slot) | |||
826 | struct pci_dev *pdev = php_slot->pdev; | 826 | struct pci_dev *pdev = php_slot->pdev; |
827 | int irq, ret; | 827 | int irq, ret; |
828 | 828 | ||
829 | /* | ||
830 | * The MSI/MSIx interrupt might have been occupied by other | ||
831 | * drivers. Don't populate the surprise hotplug capability | ||
832 | * in that case. | ||
833 | */ | ||
834 | if (pci_dev_msi_enabled(pdev)) | ||
835 | return; | ||
836 | |||
829 | ret = pci_enable_device(pdev); | 837 | ret = pci_enable_device(pdev); |
830 | if (ret) { | 838 | if (ret) { |
831 | dev_warn(&pdev->dev, "Error %d enabling device\n", ret); | 839 | dev_warn(&pdev->dev, "Error %d enabling device\n", ret); |