PCI/MSI: Use PCI_IRQ_INTX instead of PCI_IRQ_LEGACY
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 25 Mar 2024 07:09:12 +0000 (16:09 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Apr 2024 17:53:29 +0000 (12:53 -0500)
In pci_alloc_irq_vectors_affinity(), use the macro PCI_IRQ_INTX instead of
the now deprecated PCI_IRQ_LEGACY macro.

Link: https://lore.kernel.org/r/20240325070944.3600338-2-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi/api.c

index be679aa5db643b39201d79c9c624c2ae233c82b6..dfba4d6dd5357d283e30415e0eb56fbfdf851aaf 100644 (file)
@@ -213,8 +213,8 @@ EXPORT_SYMBOL(pci_disable_msix);
  *            * %PCI_IRQ_MSIX      Allow trying MSI-X vector allocations
  *            * %PCI_IRQ_MSI       Allow trying MSI vector allocations
  *
- *            * %PCI_IRQ_LEGACY    Allow trying legacy INTx interrupts, if
- *              and only if @min_vecs == 1
+ *            * %PCI_IRQ_INTX      Allow trying INTx interrupts, if and
+ *              only if @min_vecs == 1
  *
  *            * %PCI_IRQ_AFFINITY  Auto-manage IRQs affinity by spreading
  *              the vectors around available CPUs
@@ -279,8 +279,8 @@ int pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs,
                        return nvecs;
        }
 
-       /* use legacy IRQ if allowed */
-       if (flags & PCI_IRQ_LEGACY) {
+       /* use INTx IRQ if allowed */
+       if (flags & PCI_IRQ_INTX) {
                if (min_vecs == 1 && dev->irq) {
                        /*
                         * Invoke the affinity spreading logic to ensure that