Revert "PCI: Add helpers to manage pci_dev->irq and pci_dev->irq_managed"
Revert811a4e6fce
("PCI: Add helpers to manage pci_dev->irq and pci_dev->irq_managed"). This is part of reverting991de2e590
("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:991de2e590
("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>
This commit is contained in:
@@ -215,7 +215,7 @@ static int intel_mid_pci_irq_enable(struct pci_dev *dev)
|
||||
int polarity;
|
||||
int ret;
|
||||
|
||||
if (pci_has_managed_irq(dev))
|
||||
if (dev->irq_managed && dev->irq > 0)
|
||||
return 0;
|
||||
|
||||
switch (intel_mid_identify_cpu()) {
|
||||
@@ -256,7 +256,7 @@ static int intel_mid_pci_irq_enable(struct pci_dev *dev)
|
||||
|
||||
static void intel_mid_pci_irq_disable(struct pci_dev *dev)
|
||||
{
|
||||
if (pci_has_managed_irq(dev)) {
|
||||
if (dev->irq_managed && dev->irq > 0) {
|
||||
mp_unmap_irq(dev->irq);
|
||||
dev->irq_managed = 0;
|
||||
/*
|
||||
|
Reference in New Issue
Block a user