diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-02 00:59:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-04 00:08:03 +0200 |
commit | e9ec5c3bd238f2cbe9d9696e994f36d1b249c058 (patch) | |
tree | cb63d252e803121e6aaae1b2fe00d06052e8bf3c /drivers/net/dsa/bcm_sf2.h | |
parent | dt-bindings: net: Document Broadcom SF2 switch clocks (diff) | |
download | linux-e9ec5c3bd238f2cbe9d9696e994f36d1b249c058.tar.xz linux-e9ec5c3bd238f2cbe9d9696e994f36d1b249c058.zip |
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; |