diff options
author | David S. Miller <davem@davemloft.net> | 2021-09-21 10:58:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-21 10:58:36 +0100 |
commit | 6a3807536328c632ead28911b7524bf14cfe71aa (patch) | |
tree | 8e67db0e1a8a0bdbb90f1fd0ec35e9e28559d126 /drivers/net/dsa/bcm_sf2.c | |
parent | net/ipv4/syncookies.c: remove superfluous header files from syncookies.c (diff) | |
parent | net: dsa: bcm_sf2: Request APD, DLL disable and IDDQ-SR (diff) | |
download | linux-dev-6a3807536328c632ead28911b7524bf14cfe71aa.tar.xz linux-dev-6a3807536328c632ead28911b7524bf14cfe71aa.zip |
Merge branch 'iddq-sr-mode'
Florian Fainelli says:
====================
net: phy: broadcom: IDDQ-SR mode
This patch series adds support for the IDDQ with soft recovery mode
which allows power savings of roughly 150mW compared to a simple
BMCR.PDOWN power off (called standby power down in Broadcom datasheets).
In order to leverage these modes we add a new PHY driver flags for
drivers to opt-in for that behavior, the PHY driver is modified to do
the appropriate programming and the PHYs on which this was tested get
updated to have an appropriate suspend/resume set of functions.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index 6ce9ec1283e0..aa713936d77c 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -667,7 +667,9 @@ static u32 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port) if (priv->int_phy_mask & BIT(port)) return priv->hw_params.gphy_rev; else - return 0; + return PHY_BRCM_AUTO_PWRDWN_ENABLE | + PHY_BRCM_DIS_TXCRXC_NOENRGY | + PHY_BRCM_IDDQ_SUSPEND; } static void bcm_sf2_sw_validate(struct dsa_switch *ds, int port, |