projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a4c69
)
net: dsa: bcm_sf2: Request APD, DLL disable and IDDQ-SR
author
Florian Fainelli
<f.fainelli@gmail.com>
Mon, 20 Sep 2021 21:54:18 +0000
(14:54 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Sep 2021 09:58:35 +0000
(10:58 +0100)
When interfacing with a Broadcom PHY, request the auto-power down, DLL
disable and IDDQ-SR modes to be enabled.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/bcm_sf2.c
b/drivers/net/dsa/bcm_sf2.c
index 6ce9ec1283e05d63f9a46629d9757b40121fda4a..aa713936d77c003ec0ae2e739259b4d678c90569 100644
(file)
--- 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,