]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: store SerDes fwnode instead of device_node
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 25 May 2026 10:26:49 +0000 (10:26 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 31 May 2026 10:52:39 +0000 (12:52 +0200)
commitb3faefcc322149b81e47adf161d3472e95116552
tree7858c5ade88f49e4c496bee6ccdcf014474bedbe
parent58ce7f369944a951a7f8f099c1c01800b15d4743
realtek: pcs: store SerDes fwnode instead of device_node

Switch rtpcs_serdes from struct device_node * to struct fwnode_handle *
in preparation for fwnode_pcs_add_provider, which keys providers by
fwnode. Storing the fwnode directly avoids of_fwnode_handle() wrappers
at every API boundary.

The conversion is mechanical: of_node_get/put become fwnode_handle_get/
put (same refcount on OF-backed fwnodes), polarity helpers drop their
of_fwnode_handle() wrapping, and the link counter compares fwnodes
directly via of_fwnode_handle(arg_np). No behavior change.

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