Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run

DP cable should always connect to DPU during the entire PHY compliance
testing run. Since DP PHY compliance test is executed at irq_hpd event
context, dp_ctrl_off_link_stream() should be used instead of dp_ctrl_off().
dp_ctrl_off() is used for unplug event which is triggered when DP cable is
dis connected.

Changes in V2:
-- add fixes statement

Fixes: f21c8a276c2d ("drm/msm/dp: handle irq_hpd with sink_count = 0 correctly")

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1626191647-13901-2-git-send-email-khsieh@codeaurora.org
Signed-off-by: Rob Clark <robdclark@chromium.org>

authored by

Kuogee Hsieh and committed by
Rob Clark
7591c532 bceddc2c

+1 -1
+1 -1
drivers/gpu/drm/msm/dp/dp_ctrl.c
··· 1526 1526 * running. Add the global reset just before disabling the 1527 1527 * link clocks and core clocks. 1528 1528 */ 1529 - ret = dp_ctrl_off(&ctrl->dp_ctrl); 1529 + ret = dp_ctrl_off_link_stream(&ctrl->dp_ctrl); 1530 1530 if (ret) { 1531 1531 DRM_ERROR("failed to disable DP controller\n"); 1532 1532 return ret;