mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 12:37:11 +08:00
net: phy: yt8531h: fix pll enable setup bug
Changelog: 修复yt8531h的pll设置失败问题 Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -1731,9 +1731,12 @@ static int yt8531_config_init(struct phy_device *phydev)
|
||||
|
||||
if (of_property_read_bool(node, "motorcomm,keep-pll-enabled")) {
|
||||
/* enable RXC clock when no wire plug */
|
||||
ret = ytphy_write_ext(phydev, 0xa000, 0);
|
||||
|
||||
ret = ytphy_modify_ext_with_lock(phydev,
|
||||
YT8521_CLOCK_GATING_REG,
|
||||
YT8521_CGR_RX_CLK_EN, 0);
|
||||
YT8521_CLOCK_GATING_REG,
|
||||
(1 << 12 | 0x1 << 1 | 0x1 << 2 | 0xf << 4),
|
||||
(0x1 << 1 | 0x1 << 2 | 0x8 << 4));
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user