realtek: pcs: add more SerDes access helpers
authorJonas Jelonek <[email protected]>
Wed, 8 Oct 2025 08:19:25 +0000 (08:19 +0000)
committerRobert Marko <[email protected]>
Fri, 10 Oct 2025 09:00:15 +0000 (11:00 +0200)
commit3cf04d2e0b95b853c09af7f709a81ee1a2ca6480
tree3b4134b008ff8370b4c6111eed8f00ba9872248b
parent74f74edfe1ea7bd324afe5cd5b79ea3a101d8fc4
realtek: pcs: add more SerDes access helpers

Add more SerDes access helpers for the upcoming code import from PHY
driver. There, similar helpers are used to read and write full SerDes
registers or only parts of them (aka bitfields).

The helpers are expected to replace the following used in PHY SerDes
code:
  - rtl9300_sds_field_r
  - rtl9300_sds_field_w
  - rtsds_931x_read
  - rtsds_931x_read_field
  - rtsds_931x_write
  - rtsds_931x_write_field

Mark the helpers as unused for now to make the compiler happy. This will
be removed as soon as they are used.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20352
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c