author: Emil Renner Berthing <emil.renner.berthing@canonical.com> 2022-11-07 21:05:18 +0100
committer: Emil Renner Berthing <emil.renner.berthing@canonical.com> 2023-07-20 20:53:37 +0200
commit: 5ac78bbbace6d3a37c30a69c423e96a0209cc3f0
parent: 6e0a376c3870728ee1f57a04779736b6fd0e88b3
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
index 2fa5a90e073b..85b121f2736c 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -1470,6 +1470,12 @@ static int yt8521_config_init(struct phy_device *phydev)
ret = ytphy_rgmii_clk_delay_config(phydev);
if (ret < 0)
goto err_restore_page;
+
+ /* disable rx delay */
+ ret = ytphy_modify_ext(phydev, YT8521_CHIP_CONFIG_REG,
+ YT8521_CCR_RXC_DLY_EN, 0);
+ if (ret < 0)
+ goto err_restore_page;
}
if (of_property_read_bool(node, "motorcomm,auto-sleep-disabled")) {