diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-01 15:59:12 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-03 15:08:03 -0700 |
commit | e9ec5c3bd238f2cbe9d9696e994f36d1b249c058 (patch) | |
tree | cb63d252e803121e6aaae1b2fe00d06052e8bf3c /drivers/net/dsa/bcm_sf2.h | |
parent | e489aea7a6557350a2db0312ed8b89cc26b9744c (diff) |
net: dsa: bcm_sf2: request and handle clocks
Fetch the corresponding clock resource and enable/disable it during
suspend/resume if and only if we have no ports defined for Wake-on-LAN.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index de386dd96d66..6dd69922e3f6 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -93,6 +93,8 @@ struct bcm_sf2_priv { /* Mask of ports enabled for Wake-on-LAN */ u32 wol_ports_mask; + struct clk *clk; + /* MoCA port location */ int moca_port; |