1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
Markus Stockhausen 1bef83bb23 realtek: simplify RTL8214FC patches for ethtool copper/fiber switching
There is a patch/bug cascade in the realtek target phy code that must be resolved.

1. The phy_driver structure is patched to add features ONLY needed for RTL8214FC

2. The kernel is patched to allow switching fiber/copper port of phys through ethtool
   by calling these new features.

3. With those patches applied the bootup always switches RTL8214FC ports to copper.
   Even if a SFP module was found before and the phy driver switched to fibre before.

3. So another patch is needed that reprobes the SFP module to activate fiber again.

4. Because of the reprobing we need a fourth patch that avoid duplicate devices.

Simplify this by removing all patches and reusing the existing ethtool phy tunable
interface. The command line usage might be counterintuitive but it avoids tons of
problems in the code. In addition, this scenario is not used frequently.

Before:ethtool -s lan25 port fibre/tp
After: ethtool --set-phy-tunable lan25 downshift on/off

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18816
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-05-26 10:37:54 +02:00
..
airoha kernel: bump 6.6 to 6.6.89 2025-05-03 19:57:53 +02:00
apm821xx apm821xx: replace kmod-usb3 with kmod-usb-xhci-pci-renesas 2025-05-17 20:14:27 +02:00
archs38 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
armsr armsr: remove 'console=tty1' from kernel command line 2025-05-26 10:31:23 +02:00
at91 treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
ath79 ath79: refresh 6.12 kernel patches 2025-05-25 20:39:13 +02:00
bcm27xx bcm27xx: drop README patches 2025-05-23 10:36:21 +02:00
bcm47xx treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
bcm53xx kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
bcm4908 bcm63xx-cfe: install into image staging dir 2025-04-13 10:44:19 +02:00
bmips treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
d1 d1: drop 6.6 support 2025-05-24 14:03:02 +02:00
gemini Revert "gemini: Add module for VSC73xx switches" 2025-05-02 19:17:53 +02:00
generic kernel: bump 6.6 to 6.6.92 2025-05-25 17:57:19 +02:00
imx kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
ipq40xx treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
ipq806x treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
ixp4xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
kirkwood treewide: dts: trim "#size-cells" from "gpio-export" node 2025-05-18 19:35:00 +02:00
lantiq treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
layerscape kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
loongarch64 kernel: Add KERNEL_DCB (Data Center Bridging) 2025-03-09 17:05:26 +01:00
malta kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
mediatek mediatek: filogic: add support for SNR-CPE-AX2 2025-05-25 19:04:12 +02:00
mpc85xx mac80211: ath9k: replace qca,led-sources 2025-05-24 21:33:37 +02:00
mvebu mvebu: armada37xx: add pending PXA I2C recovery fix 2025-05-20 20:54:48 +02:00
mxs mxs: drop 6.6 support 2025-05-24 16:15:53 +02:00
octeon octeon: force pcs reset to fix qca833x traffic 2025-04-02 10:04:52 +02:00
omap kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
pistachio kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
qoriq kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
qualcommax qualcommax: ipq50xx: backport upstreamed patches for IPQ5018 tsens support 2025-05-24 11:27:05 +02:00
qualcommbe qualcommbe: ipq95xx: fix ipq-uniphy crash on IPQ9554 2025-05-12 15:06:24 +02:00
ramips ramips: fix wrg-header image recipe 2025-05-22 18:49:31 +02:00
realtek realtek: simplify RTL8214FC patches for ethtool copper/fiber switching 2025-05-26 10:37:54 +02:00
rockchip rockchip: armv8: add missing config option 2025-05-25 17:57:19 +02:00
sifiveu sifiveu: add 6.12 kernel as testing 2025-05-23 12:28:50 +02:00
siflower treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
starfive kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
stm32 stm32: add missing config option 2025-05-25 17:57:19 +02:00
sunxi kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
tegra kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 x86: legacy: config: alphabetize config-6.12 2025-05-25 18:09:01 +02:00
zynq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
Makefile linux: fix missing default packages in profiles.json 2024-11-17 19:29:06 +01:00