Skip to content

Commit 319aca8

Browse files
author
Abhinav Kumar
committed
drm/msm/dp: reset the link phy params before link training
Before re-starting link training reset the link phy params namely the pre-emphasis and voltage swing levels otherwise the next link training begins at the previously cached levels which can result in link training failures. Fixes: 8ede2ec ("drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets") Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> # SM8350-HDK Reviewed-by: Stephen Boyd <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/605946/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent aedf02e commit 319aca8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/msm/dp/dp_ctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,8 @@ static int dp_ctrl_link_train(struct dp_ctrl_private *ctrl,
12861286
link_info.rate = ctrl->link->link_params.rate;
12871287
link_info.capabilities = DP_LINK_CAP_ENHANCED_FRAMING;
12881288

1289+
dp_link_reset_phy_params_vx_px(ctrl->link);
1290+
12891291
dp_aux_link_configure(ctrl->aux, &link_info);
12901292

12911293
if (drm_dp_max_downspread(dpcd))

0 commit comments

Comments
 (0)