Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI/MSI: Use msi_domain_alloc/free_irqs_all_locked()

Switch to the new domain id aware interfaces to phase out the previous
ones. No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124230314.455168748@linutronix.de

+2 -2
+2 -2
drivers/pci/msi/irqdomain.c
··· 14 14 15 15 domain = dev_get_msi_domain(&dev->dev); 16 16 if (domain && irq_domain_is_hierarchy(domain)) 17 - return msi_domain_alloc_irqs_descs_locked(domain, &dev->dev, nvec); 17 + return msi_domain_alloc_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN, nvec); 18 18 19 19 return pci_msi_legacy_setup_msi_irqs(dev, nvec, type); 20 20 } ··· 25 25 26 26 domain = dev_get_msi_domain(&dev->dev); 27 27 if (domain && irq_domain_is_hierarchy(domain)) { 28 - msi_domain_free_irqs_descs_locked(domain, &dev->dev); 28 + msi_domain_free_irqs_all_locked(&dev->dev, MSI_DEFAULT_DOMAIN); 29 29 } else { 30 30 pci_msi_legacy_teardown_msi_irqs(dev); 31 31 msi_free_msi_descs(&dev->dev);