From: Tobias Schramm Date: Mon, 25 Dec 2023 16:50:26 +0000 (+0100) Subject: realtek: 5.15: rtl930x: fix SerDes phy register write X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ac785caf3e82e427a67e52f1333e6e3903fb431;p=openwrt%2Fstaging%2Fnbd.git realtek: 5.15: rtl930x: fix SerDes phy register write The indirect SerDes phy register write function was missing the actual write call. Add it. Signed-off-by: Tobias Schramm --- diff --git a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c index c69a5af4bd..4bbcfd90f5 100644 --- a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c +++ b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c @@ -274,6 +274,8 @@ int rtl930x_write_sds_phy(int phy_addr, int page, int phy_reg, u16 v) sw_w32(v, RTL930X_SDS_INDACS_DATA); cmd = phy_addr << 2 | page << 7 | phy_reg << 13 | 0x3; + sw_w32(cmd, RTL930X_SDS_INDACS_CMD); + for (i = 0; i < 100; i++) { if (!(sw_r32(RTL930X_SDS_INDACS_CMD) & 0x1)) break;