[PATCH 01/11] PCI: epf-mhi: Pass the actual number of MSI vectors to pci_epc_set_msi()

Niklas Cassel cassel at kernel.org
Mon Nov 23 02:03:14 PST 2026


On Sun, Nov 22, 2026 at 08:26:14AM +0530, Krishna Chaitanya Chundru wrote:
> Since commit f62da6e7270c ("PCI: endpoint: Align pci_epc_set_msi(),
> pci_epc_ops::set_msi() nr_irqs encoding"), pci_epc_set_msi() takes the
> number of MSI interrupts directly; the controller driver encodes it into
> the Multiple Message Capable field.
> 
> The MHI function driver still passes order_base_2(info->msi_count), which
> is now encoded a second time: for msi_count = 32 the controller advertises
> only 8 MSI vectors instead of 32.
> 
> Pass info->msi_count directly.
> 
> Fixes: f62da6e7270c ("PCI: endpoint: Align pci_epc_set_msi(), pci_epc_ops::set_msi() nr_irqs encoding")


As Sashiko already pointed out [1], this Fixes tag is wrong.

Please also reword the commit message, since it is based on the same
misunderstanding.

This matters for stable: commit 1bf5f25324f7 is in v6.5, but commit
f62da6e7270c is only in v6.16, so with the current tag, the stable
kernels in between would not get this fix.

The code change itself looks good to me.

[1] https://lore.kernel.org/all/sashiko-outbox-227654@kernel.org/


Kind regards,
Niklas



More information about the linux-phy mailing list