]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: bcmgenet: increase WoL poll timeout
authorJustin Chen <justin.chen@broadcom.com>
Thu, 12 Mar 2026 19:18:52 +0000 (12:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:53 +0000 (11:08 +0100)
[ Upstream commit 6cfc3bc02b977f2fba5f7268e6504d1931a774f7 ]

Some systems require more than 5ms to get into WoL mode. Increase the
timeout value to 50ms.

Fixes: c51de7f3976b ("net: bcmgenet: add Wake-on-LAN support code")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260312191852.3904571-1-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c

index 3b082114f2e538a1a258e782e589dfc918ddacac..2033fb9d893e02724b818ebaa8b61b857bd8a125 100644 (file)
@@ -123,7 +123,7 @@ static int bcmgenet_poll_wol_status(struct bcmgenet_priv *priv)
        while (!(bcmgenet_rbuf_readl(priv, RBUF_STATUS)
                & RBUF_STATUS_WOL)) {
                retries++;
-               if (retries > 5) {
+               if (retries > 50) {
                        netdev_crit(dev, "polling wol mode timeout\n");
                        return -ETIMEDOUT;
                }