diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2021-03-31 16:14:17 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-03-31 18:41:46 +0300 |
commit | 36a813839cdee99c87e17a2d52a009b5517d54a9 (patch) | |
tree | f0b3a660d75440858523da5d2eb9f75f10a085dd | |
parent | d57cd79db1a3c147b63fb0c64ccd26855eb8f86e (diff) | |
download | linux-36a813839cdee99c87e17a2d52a009b5517d54a9.tar.xz |
phy: ti: j721e-wiz: Configure 'p_standard_mode' only for DP/QSGMII
Configure 'p_standard_mode' only for DP/QSGMII as for other modes
it's not used as per the programming sequence. Add "continue" in the
else to prevent random value from being written to p_standard_mode.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210331131417.15596-1-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/phy/ti/phy-j721e-wiz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index 25238051680d..2b354680a272 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -340,6 +340,8 @@ static int wiz_mode_select(struct wiz *wiz) mode = LANE_MODE_GEN1; else if (wiz->lane_phy_type[i] == PHY_TYPE_QSGMII) mode = LANE_MODE_GEN2; + else + continue; ret = regmap_field_write(wiz->p_standard_mode[i], mode); if (ret) |