mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
net: phy: motorcomm: Disable rgmii rx delay
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
This commit is contained in:
parent
282e33840d
commit
9e36e0761a
1 changed files with 7 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue