diff options
author | Doug Berger <opendmb@gmail.com> | 2020-04-29 13:02:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-22 09:31:00 +0200 |
commit | 4fbc334749e77bc3b67555e7307d821372a09dc4 (patch) | |
tree | 33febd7fcc1b88370d577c5a700c44fe16f1ac09 /lib/mpi | |
parent | d7b1ca9eebdfadd8843f394bcee919b25bc540da (diff) | |
download | linux-stable-4fbc334749e77bc3b67555e7307d821372a09dc4.tar.gz linux-stable-4fbc334749e77bc3b67555e7307d821372a09dc4.tar.bz2 linux-stable-4fbc334749e77bc3b67555e7307d821372a09dc4.zip |
net: bcmgenet: Fix WoL with password after deep sleep
[ Upstream commit 6f7689057a0f10a6c967b9f2759d7a3dc948b930 ]
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: c51de7f3976b ("net: bcmgenet: add Wake-on-LAN support code")
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions