Skip to content

Commit d722e9a

Browse files
committed
mailbox: bcm-flexrm-mailbox: Rework MSI interrupt handling
No point in retrieving the MSI descriptors. Just query the Linux interrupt number. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 065afdc commit d722e9a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/mailbox/bcm-flexrm-mailbox.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,6 @@ static int flexrm_mbox_probe(struct platform_device *pdev)
14971497
int index, ret = 0;
14981498
void __iomem *regs;
14991499
void __iomem *regs_end;
1500-
struct msi_desc *desc;
15011500
struct resource *iomem;
15021501
struct flexrm_ring *ring;
15031502
struct flexrm_mbox *mbox;
@@ -1608,10 +1607,8 @@ static int flexrm_mbox_probe(struct platform_device *pdev)
16081607
goto fail_destroy_cmpl_pool;
16091608

16101609
/* Save alloced IRQ numbers for each ring */
1611-
for_each_msi_entry(desc, dev) {
1612-
ring = &mbox->rings[desc->msi_index];
1613-
ring->irq = desc->irq;
1614-
}
1610+
for (index = 0; index < mbox->num_rings; index++)
1611+
mbox->rings[index].irq = msi_get_virq(dev, index);
16151612

16161613
/* Check availability of debugfs */
16171614
if (!debugfs_initialized())

0 commit comments

Comments
 (0)