summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>2022-11-07 23:05:18 +0300
committerEmil Renner Berthing <emil.renner.berthing@canonical.com>2024-04-13 23:33:33 +0300
commit72466c8f014770c31a5b8d90aaa6eac71e35e9e4 (patch)
tree85cd52c04a6e215be2ac9eeabb02c032a5f4cc78
parent061553cddae26447970c1535fb1dc18b506398db (diff)
downloadlinux-72466c8f014770c31a5b8d90aaa6eac71e35e9e4.tar.xz
net: phy: motorcomm: Disable rgmii rx delay
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
-rw-r--r--drivers/net/phy/motorcomm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
index 7a11fdb687cc..152436ae7d31 100644
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
@@ -1584,6 +1584,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")) {