realtek: pcs: rtl931x: improve mode setting functions
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 20 Dec 2025 22:18:23 +0000 (22:18 +0000)
committerRobert Marko <robimarko@gmail.com>
Mon, 29 Dec 2025 16:06:19 +0000 (17:06 +0100)
commitd5a4387ac5613c8e235c0197255adff48b0111e7
tree692317af1117a998dd516178552024eecd695163
parent75493a812fd5dbbd1839ecec3543cdc9ee7c3cca
realtek: pcs: rtl931x: improve mode setting functions

Improve the current mode setting functions to address a few issues:
- add missing mode from SDK reference (instead of using the
  corresponding value as a default value)
- use and return error values
- give internal variable a more meaningful name
- consistently use lowercase letters in hex values

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20736
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c