diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-02-01 13:23:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-03 11:23:50 -0800 |
commit | 8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e (patch) | |
tree | a6a27afc8a495e40f30e5c873c0eb4946f1b3337 /drivers/net/ethernet/broadcom/bcmsysport.h | |
parent | 2348bb3117e1c88fd7799cd751200eda84b55c23 (diff) | |
download | linux-8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e.tar.gz linux-8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e.tar.bz2 linux-8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e.zip |
net: systemport: Fix WoL with password after deep sleep
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h index 0887e6356649..0b192fea9c5d 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.h +++ b/drivers/net/ethernet/broadcom/bcmsysport.h @@ -12,6 +12,7 @@ #define __BCM_SYSPORT_H #include <linux/bitmap.h> +#include <linux/ethtool.h> #include <linux/if_vlan.h> #include <linux/net_dim.h> @@ -778,6 +779,7 @@ struct bcm_sysport_priv { unsigned int crc_fwd:1; u16 rev; u32 wolopts; + u8 sopass[SOPASS_MAX]; unsigned int wol_irq_disabled:1; /* MIB related fields */ |