[DM/FIXUP] Fixup MSI first IRQ read offset

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-11-18 19:42:14 +08:00 committed by Rbb666
parent 34cf382c8b
commit 86ba3b666f
1 changed files with 1 additions and 1 deletions

View File

@ -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)