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-07-22 02:20:59 +0300
commit060f7bcf868d629713ae27aa70131234538b3266 (patch)
tree2df05ed21f0be90aa171c41c1a410aaf62dc5491
parent1ef76fd66dbf3ca51c6897b724e2b9c01ed82c9f (diff)
downloadlinux-060f7bcf868d629713ae27aa70131234538b3266.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")) {