Skip to content

Commit

Permalink
phy: qcom: Program SSC only if supported by sink
Browse files Browse the repository at this point in the history
Some legacy eDP sinks may not support SSC. The support for SSC is
indicated through an opts flag from the controller driver. This
change will enable SSC only if the sink supports it.

Signed-off-by: Sankeerth Billakanti <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Douglas Anderson <[email protected]>
Link: https://lore.kernel.org/r/20220207161612.REPOST.v1.3.Ie81d594ec2327dae6410db359cc492484bab171f@changeid
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
Sankeerth Billakanti authored and vinodkoul committed Feb 8, 2022
1 parent cc62512 commit 4a4c3cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/phy/qualcomm/phy-qcom-edp.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,11 @@ static int qcom_edp_phy_power_on(struct phy *phy)
writel(0x00, edp->tx0 + TXn_LANE_MODE_1);
writel(0x00, edp->tx1 + TXn_LANE_MODE_1);

ret = qcom_edp_configure_ssc(edp);
if (ret)
return ret;
if (edp->dp_opts.ssc) {
ret = qcom_edp_configure_ssc(edp);
if (ret)
return ret;
}

ret = qcom_edp_configure_pll(edp);
if (ret)
Expand Down

0 comments on commit 4a4c3cc

Please sign in to comment.