Re: [PATCH] pci: cadence-ep: Fix incorrect MSI capability ID
From: Lukas Wunner
Date: Fri Oct 10 2025 - 03:43:02 EST
On Fri, Oct 10, 2025 at 12:10:11AM +0800, Hans Zhang wrote:
> In a previous change, the MSIX capability ID (PCI_CAP_ID_MSIX)
> was mistakenly used when trying to locate the MSI capability in
> cdns_pcie_ep_get_msi(). Thisis incorrect as the function handles
> MSI functionality, not MSIX.
>
> Fix this by replacing PCI_CAP_ID_MSIX with the correct MSI capability
> ID(PCI_CAP_ID_MSI) when calling cdns_pcie_find_capability(). This
> ensures theMSI capability is properly located, allowing MSI functionality
> to work asintended.
>
> Signed-off-by: Hans Zhang <18255117159@xxxxxxx>
Fixes: 907912c1daa7 ("PCI: cadence: Use cdns_pcie_find_*capability() to avoid hardcoding offsets")
Reported-by: Sasha Levin <sashal@xxxxxxxxxx>
Closes: https://lore.kernel.org/r/aOfMk9BW8BH2P30V@laps/
This is material for the "pci/for-linus" branch.