[DM/FIXUP] Fixup MSI first IRQ read offset
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
34cf382c8b
commit
86ba3b666f
|
@ -71,7 +71,7 @@ rt_err_t rt_pci_msi_setup_irqs(struct rt_pci_device *pdev, int nvec, int type)
|
||||||
if (!err)
|
if (!err)
|
||||||
{
|
{
|
||||||
/* Get the first irq */
|
/* 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)
|
rt_bitmap_for_each_set_bit(msi_irq_map, irq_idx, MAX_HANDLERS)
|
||||||
|
|
Loading…
Reference in New Issue