]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Avoid RBUF stuck in Wake-on-LAN mode
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Feb 2020 20:32:04 +0000 (12:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Feb 2020 13:28:52 +0000 (14:28 +0100)
commit8708bc82559424a34d7d13d4851be325f995129f
tree88d60088f56da62fb5300f3e245cbc5b1999bb02
parenteb07e710c475e673461f0b4725998ab12dddb531
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: f7d5b1fa05b7 ("net: systemport: add Wake-on-LAN support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c