]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: add per-link port storage to rtpcs_serdes
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 25 May 2026 17:06:41 +0000 (17:06 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 31 May 2026 10:52:41 +0000 (12:52 +0200)
commitc4f5c34fa4eaee7622aeae41009c1efe980b591e
tree9c12a7cf382124f7d42b4f9d6d3b0fa3ffe0d073
parentdbd9a35bf30c538fbd3b8c8c62aa689781cbcb41
realtek: pcs: add per-link port storage to rtpcs_serdes

Add an s16 link_port[] array to struct rtpcs_serdes, initialised to
-1 in probe. This is preparatory storage for the port number that
each link serves; it will be populated in the follow-up fwnode_pcs
migration commit by scanning consumer DT nodes for their reg, and
consumed by the resolver when allocating rtpcs_link.

Assisted-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Link: https://github.com/openwrt/openwrt/pull/23539
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c