net: phy: motorcomm: Disable rgmii rx delay

Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
This commit is contained in:
Emil Renner Berthing 2022-11-07 21:05:18 +01:00
parent 282e33840d
commit 9e36e0761a

View file

@ -161,6 +161,7 @@
#define YT8521_CHIP_CONFIG_REG 0xA001
#define YT8521_CCR_SW_RST BIT(15)
#define YT8521_CCR_RXC_DLY_EN BIT(8)
#define YT8521_CCR_MODE_SEL_MASK (BIT(2) | BIT(1) | BIT(0))
#define YT8521_CCR_MODE_UTP_TO_RGMII 0
@ -1174,6 +1175,12 @@ static int yt8521_config_init(struct phy_device *phydev)
val);
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;
}
/* disable auto sleep */