phy/realtek: disable ALDPS mode for RTL8211F

The ALDPS mode will stop the pll to save the power.
This cause the kernel crash whenever it tried to read
or write to the phy due to phy is power off state.
Disable this mode to let the phy keep alive.

Signed-off-by: Mohamad Noor Alim Hussin <mnalim@efinixinc.com>
This commit is contained in:
Mohamad Noor Alim Hussin
2024-04-22 14:26:27 +08:00
committed by Byron Lathi
parent 416f78df05
commit 8d7d404de2

View File

@@ -185,9 +185,6 @@ static int rtl8211f_config_init(struct phy_device *phydev)
u16 val;
int ret;
val = RTL8211F_ALDPS_ENABLE | RTL8211F_ALDPS_PLL_OFF | RTL8211F_ALDPS_XTAL_OFF;
phy_modify_paged_changed(phydev, 0xa43, RTL8211F_PHYCR1, val, val);
switch (phydev->interface) {
case PHY_INTERFACE_MODE_RGMII:
val_txdly = 0;