Re: [PATCH v9 1/2] wifi: iwlwifi: pcie: migrate to modern pci_alloc_irq_vectors API

From: Miguel Ojeda

Date: Thu Mar 19 2026 - 16:57:02 EST


On Thu, Mar 19, 2026 at 9:47 PM Adrián García Casado
<adriangarciacasado42@xxxxxxxxx> wrote:
>
> The iwlwifi driver currently uses the deprecated pci_enable_msix_range()
> API and implements a manual loop for interrupt affinity distribution.
> This manual approach is less robust than the kernel's core affinity
> management and increases maintenance complexity.
>
> Migrate the driver to the modern pci_alloc_irq_vectors() API. Use the
> PCI_IRQ_AFFINITY flag to delegate MSI-X affinity distribution to the
> kernel core. Remove the manual iwl_pcie_irq_set_affinity() loop as it
> is now redundant.
>
> Additionally, remove the unused 'offset' variable to resolve a
> previously reported kbuild warning.
>
> Signed-off-by: Adrián García Casado <adriangarciacasado42@xxxxxxxxx>

As it was mentioned before, please reply or acknowledge the feedback
you are receiving, instead of sending new versions immediately:

https://docs.kernel.org/process/submitting-patches.html#don-t-get-discouraged-or-impatient

In addition, please use `scripts/get_maintainer.pl` to pick the right
list of Cc's, e.g. I am not sure why I am in the Cc list for this
patch.

Finally, if this happens to be assisted by an LLM or similar, please
disclose that fact:

https://docs.kernel.org/process/generated-content.html
https://docs.kernel.org/process/coding-assistants.html

Thanks!

Cheers,
Miguel