Skip to content

Commit 39841cc

Browse files
Arun Parameswarandavem330
authored andcommitted
net: dsa: b53: Fix for failure when irq is not defined in dt
Fixes the issues with non BCM58XX chips in the b53 driver failing, when the irq is not specified in the device tree. Removed the check for BCM58XX in b53_srab_prepare_irq(), so the 'port->irq' will be set to '-EXIO' if the irq is not specified in the device tree. Fixes: 1699437 ("net: dsa: b53: Make SRAB driver manage port interrupts") Fixes: b2ddc48 ("net: dsa: b53: Do not fail when IRQ are not initialized") Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ec7fd00 commit 39841cc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/dsa/b53/b53_srab.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ static void b53_srab_prepare_irq(struct platform_device *pdev)
511511
/* Clear all pending interrupts */
512512
writel(0xffffffff, priv->regs + B53_SRAB_INTR);
513513

514-
if (dev->pdata && dev->pdata->chip_id != BCM58XX_DEVICE_ID)
515-
return;
516-
517514
for (i = 0; i < B53_N_PORTS; i++) {
518515
port = &priv->port_intrs[i];
519516

0 commit comments

Comments
 (0)