]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Check for Wake-on-LAN interrupt probe deferral
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 11 May 2022 03:17:51 +0000 (20:17 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 12 May 2022 07:58:58 +0000 (09:58 +0200)
commitce1cf0803a7eaa34c7c6c42540492e44a379b8c4
tree23e03fdc88ed02e910ac44fc8b88a2844785fda7
parente7b40db738a726ba1c3d21469b4791ebce448a30
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: 7898495dd5a3 ("bcmgenet: add WOL IRQ check")
Fixes: bf21da15a221 ("net: bcmgenet: Avoid touching non-existent interrupt")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20220511031752.2245566-1-f.fainelli@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/genet/bcmgenet.c