diff options
author | Bjarni Jonasson <bjarni.jonasson@microchip.com> | 2021-03-19 14:29:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-19 12:17:30 -0700 |
commit | df4771783d6447b9c260bbb2692af15c4046c15b (patch) | |
tree | 6fd7f31b802d6252495fddb9edb05e7627fe09e5 /drivers/net/phy/mscc | |
parent | c54f042dcc1b258ad15d2be0f0b3ba371f758329 (diff) |
net: phy: mscc: Applying LCPLL reset to VSC8584
Introduced LCPLL reset in
commit d15e08d9fb82 ("net: phy: mscc: adding LCPLL reset to VSC8514").
Now applying this reset to the VSC8584 phy familiy.
Fixes: a5afc1678044a ("net: phy: mscc: add support for VSC8584 PHY.")
Signed-off-by: Bjarni Jonasson <bjarni.jonasson@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mscc')
-rw-r--r-- | drivers/net/phy/mscc/mscc_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/phy/mscc/mscc_main.c b/drivers/net/phy/mscc/mscc_main.c index 3a7705228ed5..2c2a3424dcc1 100644 --- a/drivers/net/phy/mscc/mscc_main.c +++ b/drivers/net/phy/mscc/mscc_main.c @@ -1362,6 +1362,12 @@ static int vsc8584_config_pre_init(struct phy_device *phydev) u16 crc, reg; int ret; + ret = vsc8584_pll5g_reset(phydev); + if (ret < 0) { + dev_err(dev, "failed LCPLL reset, ret: %d\n", ret); + return ret; + } + phy_base_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_STANDARD); /* all writes below are broadcasted to all PHYs in the same package */ |