]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: assign SerDes reference upon PCS creation
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 13 Dec 2025 10:29:56 +0000 (10:29 +0000)
committerRobert Marko <robimarko@gmail.com>
Tue, 16 Dec 2025 12:38:13 +0000 (13:38 +0100)
commit6f98353eecbebd2e7b8d18ab8582121cabc11dad
tree00608008cfaa9c13d6dc1f96cc4e4361f332d325
parent01cfdb16103ae14e0525636ce4dfd062245cfb0b
realtek: pcs: assign SerDes reference upon PCS creation

Upon creation of a phylink_pcs instance by calling rtpcs_create, assign
a reference to the corresponding SerDes to the link structure. In the
next step, this should be used everywhere instead of the plain SerDes
number.

Rename the field used to hold the SerDes number from 'sds' to 'sds_num'
and name the new field 'sds' to make clear what is what.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 69bbcc685b3c11719a1b2dbbc08aa02fba636455)
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c