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:37:32 +0000 (13:37 +0100)
commit69bbcc685b3c11719a1b2dbbc08aa02fba636455
tree9dfbb71073076e7af7b1ade46403a412c440d964
parent232c1fb14a072ee5c3c96ead43919ab5add526dd
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>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c