mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-15 23:17:09 +00:00
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>
This commit is contained in:
parent
04a8f553e0
commit
0ac785caf3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user