Skip to content

Commit 263a425

Browse files
ffainellidavem330
authored andcommitted
net: systemport: Avoid RBUF stuck in Wake-on-LAN mode
After a number of suspend and resume cycles, it is possible for the RBUF to be stuck in Wake-on-LAN mode, despite the MPD enable bit being cleared which instructed the RBUF to exit that mode. Avoid creating that problematic condition by clearing the RX_EN and TX_EN bits in the UniMAC prior to disable the Magic Packet Detector logic which is guaranteed to make the RBUF exit Wake-on-LAN mode. Fixes: 83e82f4 ("net: systemport: add Wake-on-LAN support") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 21b5f67 commit 263a425

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/broadcom/bcmsysport.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,6 +2736,9 @@ static int __maybe_unused bcm_sysport_resume(struct device *d)
27362736

27372737
umac_reset(priv);
27382738

2739+
/* Disable the UniMAC RX/TX */
2740+
umac_enable_set(priv, CMD_RX_EN | CMD_TX_EN, 0);
2741+
27392742
/* We may have been suspended and never received a WOL event that
27402743
* would turn off MPD detection, take care of that now
27412744
*/

0 commit comments

Comments
 (0)