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-05-08 12:38:24 +0300
commit44dd66138898c20c248d5a5b93baf201f46bf9b8 (patch)
tree6206cc27ebfde0ce566aaa9759e5077d7b767bd4
parenta68fcdaddfc2245efe0ff4243c52b6bd4616db63 (diff)
downloadlinux-44dd66138898c20c248d5a5b93baf201f46bf9b8.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")) {