openwrt/target/linux/realtek
Jonas Jelonek ad720e4a30 realtek: pcs: add media type for PCB
Previous commits carved out some TX configuration from different places
into a dedicated function. A cause of this is a behavioral change where
the TX amplifier values aren't applied anymore if it isn't a "fiber
mode". To restore this behavior and make the media/TX-RX configuration
more generic, we need a dedicated media type. The existing ones only
cover fiber and DACs, but not the other left case where a PHY is
attached to the SerDes. This now calls set_media for USXGMII and XSGMII
modes intentionally, both to prepare for future changes and to restore
previous behavior.

We do not have a reliable way to distinct between the actually used
media types, this is still a TODO. But several parts of the code already
have different values applied based on this information. Moreover, this
is especially needed for DAC cables to work properly. While this is
missing, we need to rely on inferring the media from the SerDes mode.

While at it, improve the call site of media handling since there's a
media type for all cases now. This allows to reduce the number of
function calls by moving it out and just have the media type in the
decision block.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22814
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-04-14 11:50:55 +02:00
..
base-files realtek: add Zyxel GS1900-48HP A1 support 2026-04-11 19:35:53 +02:00
dts realtek: rtl931x: psx28: specify POE MCU reset GPIO 2026-04-14 10:38:28 +02:00
files-6.18 realtek: pcs: add media type for PCB 2026-04-14 11:50:55 +02:00
image realtek: image: add rt-loader-bootbase recipe 2026-04-12 18:23:08 +02:00
patches-6.18 realtek: add RTL8224 initialization to Realtek driver 2026-04-08 18:46:32 +02:00
profiles
rtl838x realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
rtl839x realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
rtl930x realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
rtl930x_nand realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
rtl931x realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
rtl931x_nand realtek: drop support for 6.12 2026-04-11 20:59:10 +02:00
Makefile realtek: switch to 6.18 2026-04-11 20:59:10 +02:00
modules.mk kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00