]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dp: stop link training after link training 2 failed
authorKuogee Hsieh <quic_khsieh@quicinc.com>
Tue, 18 Jan 2022 18:47:28 +0000 (10:47 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 18 Feb 2022 15:32:58 +0000 (18:32 +0300)
commit69a3f988b8dcc3488e07a4dbdf8b0367a8102db0
tree8d001fe5f25728991a5a3a33c94d6ee82766f13e
parentb8268e4a99d70865ac804d5f42dc4daf21364db7
drm/msm/dp: stop link training after link training 2 failed

Each DP link training contains link training 1 followed by link
training 2.  There is maximum of 5 retries of DP link training
before declared link training failed. It is required to stop link
training at end of link training 2 if it is failed so that next
link training 1 can start freshly. This patch fixes link compliance
test  case 4.3.1.13 (Source Device Link Training EQ Fallback Test).

Changes in v10:
--  group into one series

Changes in v11:
-- drop drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read

Fixes: bb7f27b18d7c ("drm/msm/dp: do not end dp link training until video is ready")
Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1642531648-8448-5-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_ctrl.c