Skip to content

Commit 6b77c06

Browse files
ffainelliPaolo Abeni
authored andcommitted
net: bcmgenet: Check for Wake-on-LAN interrupt probe deferral
The interrupt controller supplying the Wake-on-LAN interrupt line maybe modular on some platforms (irq-bcm7038-l1.c) and might be probed at a later time than the GENET driver. We need to specifically check for -EPROBE_DEFER and propagate that error to ensure that we eventually fetch the interrupt descriptor. Fixes: 9deb48b ("bcmgenet: add WOL IRQ check") Fixes: 5b1f0e6 ("net: bcmgenet: Avoid touching non-existent interrupt") Signed-off-by: Florian Fainelli <[email protected]> Reviewed-by: Stefan Wahren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 00832b1 commit 6b77c06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3999,6 +3999,10 @@ static int bcmgenet_probe(struct platform_device *pdev)
39993999
goto err;
40004000
}
40014001
priv->wol_irq = platform_get_irq_optional(pdev, 2);
4002+
if (priv->wol_irq == -EPROBE_DEFER) {
4003+
err = priv->wol_irq;
4004+
goto err;
4005+
}
40024006

40034007
priv->base = devm_platform_ioremap_resource(pdev, 0);
40044008
if (IS_ERR(priv->base)) {

0 commit comments

Comments
 (0)