From 72466c8f014770c31a5b8d90aaa6eac71e35e9e4 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Mon, 7 Nov 2022 21:05:18 +0100 Subject: net: phy: motorcomm: Disable rgmii rx delay Signed-off-by: Emil Renner Berthing --- drivers/net/phy/motorcomm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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")) { -- cgit v1.2.3