realtek: pcs: add setup_serdes callback to rtpcs_cfg
authorJonas Jelonek <[email protected]>
Wed, 8 Oct 2025 19:37:30 +0000 (19:37 +0000)
committerRobert Marko <[email protected]>
Fri, 10 Oct 2025 09:00:15 +0000 (11:00 +0200)
commit5b527704b15c14ef4d41cd48d26292758c9281aa
treeb3cbdfaf21a0bf8e8d8bb73d8591a0ce1e9b7c59
parent3cf04d2e0b95b853c09af7f709a81ee1a2ca6480
realtek: pcs: add setup_serdes callback to rtpcs_cfg

Add a callback for a serdes setup function to rtpcs_cfg to allow each
SoC variant to define its own SerDes setup routine.

Call the setup_serdes operation in pcs_config if it is defined.

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