[PATCH 33/37] i3c: mipi-i3c-hci-pci: Replace pci_alloc_irq_vectors() with pcim_alloc_irq_vectors()
Shawn Lin
shawn.lin at rock-chips.com
Mon Feb 23 07:58:58 PST 2026
pcim_enable_device() no longer automatically manages IRQ vectors via devres.
Drivers must now manually call pci_free_irq_vectors() for cleanup. Alternatively,
pcim_alloc_irq_vectors() should be used.
To: Alexandre Belloni <alexandre.belloni at bootlin.com>
Cc: linux-i3c at lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas at google.com>
Cc: Philipp Stanner <phasta at kernel.org>
Cc: linux-pci at vger.kernel.org
Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>
---
drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
index 0f05a15..4753008 100644
--- a/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
+++ b/drivers/i3c/master/mipi-i3c-hci/mipi-i3c-hci-pci.c
@@ -282,7 +282,7 @@ static int mipi_i3c_hci_pci_probe(struct pci_dev *pci,
if (IS_ERR(hci->base))
return PTR_ERR(hci->base);
- ret = pci_alloc_irq_vectors(pci, 1, 1, PCI_IRQ_ALL_TYPES);
+ ret = pcim_alloc_irq_vectors(pci, 1, 1, PCI_IRQ_ALL_TYPES);
if (ret < 0)
return ret;
--
2.7.4
More information about the linux-i3c
mailing list