]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/msm/dp: reset the link phy params before link training
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Thu, 25 Jul 2024 22:04:50 +0000 (15:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 15:36:02 +0000 (17:36 +0200)
commit3adb8ed9362f2e65751d74fc75b6f062485da3cc
treec2ef28140a9f8ea30e279d4494e93751153eba90
parent3bacf814b6a61cc683c68465f175ebd938f09c52
drm/msm/dp: reset the link phy params before link training

[ Upstream commit 319aca883bfa1b85ee08411541b51b9a934ac858 ]

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: 8ede2ecc3e5e ("drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # SM8350-HDK
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/605946/
Link: https://lore.kernel.org/r/20240725220450.131245-1-quic_abhinavk@quicinc.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/dp/dp_ctrl.c