From d3f8109044f278d4ed97f3386b8a297d450a1a9b Mon Sep 17 00:00:00 2001 From: David Wu Date: Mon, 23 Jun 2025 10:24:44 +0800 Subject: [PATCH] net: phy: rockchip-fephy: Fix amplitude control for 100/10 Base-t Based on the hardware test results, the amplitude is corrected Change-Id: I9eeb1a09019948c5a618a8b2defdfcc24feb6046 Signed-off-by: David Wu --- drivers/net/phy/rockchip-fephy.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/rockchip-fephy.c b/drivers/net/phy/rockchip-fephy.c index 1b7fdd4685a4..e663f54711f0 100644 --- a/drivers/net/phy/rockchip-fephy.c +++ b/drivers/net/phy/rockchip-fephy.c @@ -108,7 +108,12 @@ static int rockchip_fephy_config_init(struct phy_device *phydev) return ret; /* 100M amplitude control */ - ret = rockchip_fephy_group_write(phydev, GROUP_CFG0, 0x18, 0xc); + ret = rockchip_fephy_group_write(phydev, GROUP_CFG0, 0x18, 0x9); + if (ret) + return ret; + + /* 10M amplitude control */ + ret = rockchip_fephy_group_write(phydev, GROUP_CFG0, 0x1f, 0x7); if (ret) return ret;