Revert "x86/PCI: Don't alloc pcibios-irq when MSI is enabled"
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Feb 2016 18:26:33 +0000 (12:26 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Feb 2016 18:26:33 +0000 (12:26 -0600)
Revert 8affb487d4a4 ("x86/PCI: Don't alloc pcibios-irq when MSI is
enabled").

This is part of reverting 991de2e59090 ("PCI, x86: Implement
pcibios_alloc_irq() and pcibios_free_irq()") to fix regressions it
introduced.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=111211
Fixes: 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and pcibios_free_irq()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
CC: Jiang Liu <jiang.liu@linux.intel.com>
CC: Joerg Roedel <jroedel@suse.de>
arch/x86/pci/common.c

index 2879efc73a967bca70606547014decd3703c84bf..cb499c5b6ae54781c027cb9713741a4e2113cdd0 100644 (file)
@@ -713,14 +713,6 @@ int pcibios_add_device(struct pci_dev *dev)
 
 int pcibios_alloc_irq(struct pci_dev *dev)
 {
-       /*
-        * If the PCI device was already claimed by core code and has
-        * MSI enabled, probing of the pcibios IRQ will overwrite
-        * dev->irq.  So bail out if MSI is already enabled.
-        */
-       if (pci_dev_msi_enabled(dev))
-               return -EBUSY;
-
        return pcibios_enable_irq(dev);
 }
 
This page took 0.027589 seconds and 5 git commands to generate.