Files
openwrt-master/target/linux/bcm27xx/patches-6.6/950-0564-net-phy-broadcom-optionally-enable-link-down-powersa.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

27 lines
951 B
Diff

From b51eb27f96c7b0d0d04d3b5025cee173ebd91198 Mon Sep 17 00:00:00 2001
From: Jonathan Bell <jonathan@raspberrypi.com>
Date: Mon, 22 May 2023 15:31:17 +0100
Subject: [PATCH 0564/1085] 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 <jonathan@raspberrypi.com>
---
drivers/net/phy/broadcom.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -383,6 +383,9 @@ static int bcm54xx_config_init(struct ph
(phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE))
bcm_phy_write_shadow(phydev, BCM54XX_SHD_RGMII_MODE, 0);
+ if (of_property_read_bool(np, "brcm,powerdown-enable"))
+ phydev->dev_flags |= PHY_BRCM_AUTO_PWRDWN_ENABLE;
+
bcm54xx_adjust_rxrefclk(phydev);
switch (BRCM_PHY_MODEL(phydev)) {