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

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sat Nov 21 19:03:08 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] PCI: epf-mhi: wrong Fixes tag and attribution for
  pci_epc_set_msi() bug
--

commit 65569d8fa7d0b7d1c73f3c6a6921db637279c429
Author: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>

> PCI: epf-mhi: Pass the actual number of MSI vectors to pci_epc_set_msi()
>
> 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")
> Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru at oss.qualcomm.com>

[Severity: Low]
Prior to commit f62da6e7270c ("PCI: endpoint: Align pci_epc_set_msi(),
pci_epc_ops::set_msi() nr_irqs encoding"), pci_epc_set_msi() already
took the unencoded number of interrupts (1..32) and called
order_base_2() internally before invoking epc->ops->set_msi(); that
commit only moved the order_base_2() call into the controller drivers.

The double order_base_2() encoding in pci_epf_mhi_epc_init() has been
present since the driver was added, and pointing Fixes: at f62da6e7270c
("PCI: endpoint: Align pci_epc_set_msi(), pci_epc_ops::set_msi() nr_irqs
encoding") (which is marked stable+noautosel) prevents older stable
trees from picking up this fix.  Should the commit message and Fixes:
tag instead reference the commit that introduced the driver:

  Fixes: 1bf5f25324f7 ("PCI: endpoint: Add PCI Endpoint function driver for MHI bus")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261122-nord_ep-v1-0-6d8839ffa9aa@oss.qualcomm.com?part=1



More information about the linux-phy mailing list