diff options
author | Tobias Schramm <tobias@t-sys.eu> | 2023-12-25 17:50:26 +0100 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2024-02-05 20:44:46 +0100 |
commit | 0ac785caf3e82e427a67e52f1333e6e3903fb431 (patch) | |
tree | 137cab3579ff217b92b7b12d3690ddd6a5b3ec9d /target/linux/realtek | |
parent | 04a8f553e05aae8cb27f41b2b6b148541a4d9124 (diff) | |
download | openwrt-0ac785caf3e82e427a67e52f1333e6e3903fb431.tar.gz openwrt-0ac785caf3e82e427a67e52f1333e6e3903fb431.tar.bz2 openwrt-0ac785caf3e82e427a67e52f1333e6e3903fb431.zip |
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 <tobias@t-sys.eu>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r-- | target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |