Skip to content

Commit dd5bd85

Browse files
ecsvjonasjelonek
authored andcommitted
kernel: rtl8261n: always configure as USXGMII
In the past, all the configuration of SerDes and PHYs on the realtek switches were done using u-boot (`rtk init`). But since RTL930x switched to SerDes configuration under Linux, the SoC side is no longer using the Realtek-proprietary variant of USXGMII. The communication to the RTL8261N PHYs on those switches broke because of this incompatibility. Enabling the full initialization on `CONFIG_MACH_REALTEK_RTL` converts also the PHY side to the standard USXGMII and therefore ensures that both sides speak the same dialect. Co-authored-by: Jonas Jelonek <jelonek.jonas@gmail.com> Signed-off-by: Sven Eckelmann <sven@narfation.org> Link: openwrt/openwrt#23076 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 017bf1c commit dd5bd85

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • target/linux/generic/files/drivers/net/phy/rtl8261n

target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phy.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ static int rtkphy_config_init(struct phy_device *phydev)
7878
case REALTEK_PHY_ID_RTL8264B:
7979
case REALTEK_PHY_ID_RTL8264:
8080
phydev_info(phydev, "%s:%u [RTL8261N/RTL8264/RTL826XB] phy_id: 0x%X PHYAD:%d\n", __FUNCTION__, __LINE__, phydev->drv->phy_id, phydev->mdio.addr);
81-
#ifdef CONFIG_MACH_REALTEK_RTL
82-
return 0;
83-
#endif
8481

8582
#if 1 /* toggle reset */
8683
phy_modify_mmd_changed(phydev, 30, 0x145, BIT(0) , 1);

0 commit comments

Comments
 (0)