Tags: janh/openwrt
Tags
kernel: realtek: replace RTL8226 MDI swap patch by upstream version A version of this patch has been accepted upstream, so use it here. Link: https://lore.kernel.org/netdev/177932162564.3801238.2549776951847746974.git-patchwork-notify@kernel.org/ Signed-off-by: Jan Hoffmann <jan@3e8.eu>
generic: net: phy: realtek: don't disable MDIO address 0 for PHY in S… …FP module At least the XikeStor SKT-2.5G-100M SFP module seems to internally use MDIO address 0 to access the PHY. This module allows accessing PHY registers using Rollball protocol on address 0x51, and also provides read-only C22 access on address 0x56. However, after disabling the PHYAD0 configuration bit, only 0xffff can be read via both methods (except for MMD device 30 which can still be accessed). Since having MDIO address 0 enabled shouldn't do any harm on SFP modules just leave the configuration bit alone in that case. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: fix SMBus Rollball access The Rollball command byte needs to be written last. Otherwise the controller might access the wrong register or write the wrong value. Fixes: 1fc19bc ("realtek: rtl93xx: mdio-smbus support for clause 45 and Rollball SFPs") Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: enable MDI swapping for RTL8226 where needed The RTL8226 PHYs in Zyxel XGS1010-10 and XGS1210-10 rev A1 have swapped MDI lanes. Specify this in the device tree, so the driver can configure it. With this change, the PHYs no longer require initialization by the bootloader. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: enable MDI swapping for RTL8226 where needed The RTL8226 PHYs in Zyxel XGS1010-10 and XGS1210-10 rev A1 have swapped MDI lanes. Specify this in the device tree, so the driver can configure it. With this change, the PHYs no longer require initialization by the bootloader. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: enable MDI swapping for RTL8226 where needed The RTL8226 PHYs in Zyxel XGS1010-10 and XGS1210-10 rev A1 have swapped MDI lanes. Specify this in the device tree, so the driver can configure it. With this change, the PHYs no longer require initialization by the bootloader. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: switch Netgear RTL8380 devices to NVMEM Use NVMEM in device tree to set the label and eth0 MAC address based on the U-Boot environment. Invididual port MAC addresses and bridge MAC are still handled in the 02_network script to maintain the current assignment. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: switch Netgear RL8380 devices to NVMEM Use NVMEM in device tree to set the label and eth0 MAC address based on the U-Boot environment. Invididual port MAC addresses and bridge MAC are still handled in the 02_network script to maintain the current assignment. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: switch Zyxel XGS1210 to NVMEM These devices contain a single MAC address in the U-Boot environment. Set it as eth0 and label MAC in device tree. To maintain the current state, the 02_network script still sets individual port MAC addresses and the bridge MAC address. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
realtek: switch HPE 1920 series to NVMEM The MAC addresses for eth0 and the individual LAN ports are now configured via device tree. The assignment itself stays the same as before, matching factory firmware. The 02_network script still sets the bridge MAC address, as it is different from the lowest port MAC address. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
PreviousNext