1
1
openwrt/target/linux/realtek/files-6.18/drivers
Jonas Jelonek 80a44d6a52
realtek: pcs: reject SerDes modes unsupported by the instance
Add a per-SerDes supported_modes bitmap, filled at probe by each
variant from the SerDes id or type, and reject unsupported modes in
determine_hw_mode() via test_bit().

This replaces the rtl838x is_hw_mode_supported() switch and adds the
same gating to rtl839x/rtl93xx, which previously relied only on the
per-variant mode-value table. Unlike that table, the bitmap is per
SerDes instance, so it also rejects modes the table can encode but that
a given SerDes cannot actually use. Rejection uses the uapi -EOPNOTSUPP
instead of the internal -ENOTSUPP.

Link: https://github.com/openwrt/openwrt/pull/23608
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-06-01 09:17:15 +02:00
..
clk/realtek
i2c/busses treewide: use _scoped for loop 2026-04-16 21:17:43 +02:00
net realtek: pcs: reject SerDes modes unsupported by the instance 2026-06-01 09:17:15 +02:00
thermal realtek: thermal: separate initialization/operation 2026-05-21 12:07:57 +02:00