From 86ba3b666f2b9be4a50ac874d4732f45e06e5e9f Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Mon, 18 Nov 2024 19:42:14 +0800 Subject: [PATCH] [DM/FIXUP] Fixup MSI first IRQ read offset Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/pci/msi/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/pci/msi/irq.c b/components/drivers/pci/msi/irq.c index ff49b28188..8e81e5d672 100644 --- a/components/drivers/pci/msi/irq.c +++ b/components/drivers/pci/msi/irq.c @@ -71,7 +71,7 @@ rt_err_t rt_pci_msi_setup_irqs(struct rt_pci_device *pdev, int nvec, int type) if (!err) { /* Get the first irq */ - desc->irq = irq - irq_nr; + desc->irq = irq - (irq_nr - 1); } rt_bitmap_for_each_set_bit(msi_irq_map, irq_idx, MAX_HANDLERS)