Commit 581d6998 authored by Kuogee Hsieh's avatar Kuogee Hsieh Committed by Dmitry Baryshkov

drm/msm/dp: reset DP controller before transmit phy test pattern

DP controller state can not switch from video ready state to
transmit phy pattern state at run time. DP mainlink has to be
teared down followed by reset controller to default state to have
DP controller switch to transmit phy test pattern state and start
generate specified phy test pattern to sinker once main link setup
again.

Changes in v2:
-- correct Fixes's commit id

Fixes: 52352fe2 ("drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run")
Signed-off-by: default avatarKuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/483563/
Link: https://lore.kernel.org/r/1650995939-28467-2-git-send-email-quic_khsieh@quicinc.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 3bc965f1
...@@ -1543,7 +1543,7 @@ static int dp_ctrl_process_phy_test_request(struct dp_ctrl_private *ctrl) ...@@ -1543,7 +1543,7 @@ static int dp_ctrl_process_phy_test_request(struct dp_ctrl_private *ctrl)
* running. Add the global reset just before disabling the * running. Add the global reset just before disabling the
* link clocks and core clocks. * link clocks and core clocks.
*/ */
ret = dp_ctrl_off_link_stream(&ctrl->dp_ctrl); ret = dp_ctrl_off(&ctrl->dp_ctrl);
if (ret) { if (ret) {
DRM_ERROR("failed to disable DP controller\n"); DRM_ERROR("failed to disable DP controller\n");
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment