]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: systemport: Fix WoL with password after deep sleep
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 1 Feb 2019 21:23:38 +0000 (13:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:45:00 +0000 (19:45 +0100)
commit05648cbaf2dd6c19b6ef7795095b3afba0a65581
tree9dae8274c06a8e222b7df59f2d32914c081c47bf
parent44476fdd1504272d54ac44858b4aff8cb7689202
net: systemport: Fix WoL with password after deep sleep

[ Upstream commit 8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e ]

Broadcom STB chips support a deep sleep mode where all register
contents are lost. Because we were stashing the MagicPacket password
into some of these registers a suspend into that deep sleep then a
resumption would not lead to being able to wake-up from MagicPacket with
password again.

Fix this by keeping a software copy of the password and program it
during suspend.

Fixes: 83e82f4c706b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h