]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: cadence: Search for MSI Capability with correct ID
authorHans Zhang <18255117159@163.com>
Fri, 10 Oct 2025 14:43:07 +0000 (22:43 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Oct 2025 21:42:29 +0000 (16:42 -0500)
commitd6fc45100aa8c02be3ddd16fae569b84086c15a9
treead71acbb5f60729633793d2d678b7472c43ddf0c
parent3a8660878839faadb4f1a6dd72c3179c1df56787
PCI: cadence: Search for MSI Capability with correct ID

907912c1daa7 ("PCI: cadence: Use cdns_pcie_find_*capability() to avoid
hardcoding offsets") incorrectly searched for the MSI-X Capability ID
instead of the MSI Capability ID in cdns_pcie_ep_get_msi().

Search for PCI_CAP_ID_MSI, not PCI_CAP_ID_MSIX, to fix this problem.

Fixes: 907912c1daa7 ("PCI: cadence: Use cdns_pcie_find_*capability() to avoid hardcoding offsets")
Reported-by: Sasha Levin <sashal@kernel.org>
Closes: https://lore.kernel.org/r/aOfMk9BW8BH2P30V@laps/
Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20251010144307.12979-1-18255117159@163.com
drivers/pci/controller/cadence/pcie-cadence-ep.c