Commit 2918b50a authored by xiazhengqiao's avatar xiazhengqiao Committed by Greg Kroah-Hartman
Browse files

drm/bridge: Fixed a DP link training bug



[ Upstream commit ca077ff8 ]

To have better compatibility for DP sink, there is a retry mechanism
for the link training process to switch between different training process.
The original driver code doesn't reset the retry counter when training
state is pass. If the system triggers link training over 3 times,
there will be a chance to causes the driver to use the wrong training
method and return a training fail result.

To Fix this, we reset the retry counter when training state is pass
each time.

Signed-off-by: default avatarAllen Chen <allen.chen@ite.corp-partner.google.com>
Signed-off-by: default avatarxiazhengqiao <xiazhengqiao@huaqin.corp-partner.google.com>
Reviewed-by: default avatarRobert Foss <rfoss@kernel.org>
Signed-off-by: default avatarRobert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231221093057.7073-1-xiazhengqiao@huaqin.corp-partner.google.com


Stable-dep-of: 484436ec ("drm/bridge: it6505: fix hibernate to resume no display issue")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c9bec33b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment