Skip to content

Commit 6ccac67

Browse files
P33Mpopcornmix
authored andcommitted
net: phy: broadcom: optionally enable link-down powersave based on DT
It's really a function of the board whether or not to use this feature as it may require MAC compatibility as well as interop testing. Signed-off-by: Jonathan Bell <[email protected]>
1 parent 5b24a34 commit 6ccac67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/phy/broadcom.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ static int bcm54xx_config_init(struct phy_device *phydev)
463463
(phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE))
464464
bcm_phy_write_shadow(phydev, BCM54XX_SHD_RGMII_MODE, 0);
465465

466+
if (of_property_read_bool(np, "brcm,powerdown-enable"))
467+
phydev->dev_flags |= PHY_BRCM_AUTO_PWRDWN_ENABLE;
468+
466469
bcm54xx_adjust_rxrefclk(phydev);
467470

468471
switch (BRCM_PHY_MODEL(phydev)) {

0 commit comments

Comments
 (0)