]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl930x: move SerDes mapping from MDIO to PCS
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 18 Jan 2026 17:58:58 +0000 (17:58 +0000)
committerRobert Marko <robimarko@gmail.com>
Wed, 28 Jan 2026 20:10:42 +0000 (21:10 +0100)
commit0a1e1016b4d82dabedcb231dc4fd7fb65ba16736
treeb676b0d1f9e62cb7167b7dbd9aa54e74358c6974
parent136cec0e006fde86c652a851367a72a0f755044d
realtek: rtl930x: move SerDes mapping from MDIO to PCS

For RTL930x, the SerDes MDIO driver performed a slight SerDes ID mapping
on certain conditions. Instead of keeping this mapping in the MDIO and
try to extend it for further quirks, lets just be a plain MDIO here and
let the user (PCS) deal with these complex quirks.

Drop the mapping from the SerDes MDIO driver and move it to the PCS
driver by leveraging the previously introduced SerDes operations
structure. Define separate ops which incorporate this mapping and use
those instead of the generic implementations.

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