realtek: rtl930x: sgmii support main master
authorBjørn Mork <bjorn@mork.no>
Wed, 12 Feb 2025 07:56:48 +0000 (08:56 +0100)
committerSander Vanheule <sander@svanheule.net>
Tue, 25 Feb 2025 19:53:30 +0000 (20:53 +0100)
commitd6977ab33a2b0296837a81b9c92ce8380cc7d39c
tree9031a818945dd2a9498301c2643de7acdc0f940d
parent1fc19bc06edc62a748327d210eea030d36541143
realtek: rtl930x: sgmii support

This makes sgmii work for 1000Base-T SFPs by stupidly adding the sgmii mode
wherever 1000base-x is accepted.  No intelligence has been used in the
process.  But it "works for me".

There is an obvious need for refactoring this code to make it more obvious
how and why we configure the mac/phy link like we do for different modes.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Link: https://github.com/openwrt/openwrt/pull/17950
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c