Message ID | 20180405095000.9756-6-enric.balletbo@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 22.9952) The bot has tested the following trees: v4.16, v4.15.15, v4.14.32, v4.9.92, v4.4.126. v4.16: Failed to apply! Possible dependencies: 705e208c7389 ("drm/bridge: analogix_dp: Retry bridge enable when it failed") v4.15.15: Failed to apply! Possible dependencies: 705e208c7389 ("drm/bridge: analogix_dp: Retry bridge enable when it failed") v4.14.32: Failed to apply! Possible dependencies: 705e208c7389 ("drm/bridge: analogix_dp: Retry bridge enable when it failed") v4.9.92: Failed to apply! Possible dependencies: 705e208c7389 ("drm/bridge: analogix_dp: Retry bridge enable when it failed") v4.4.126: Failed to apply! Possible dependencies: 705e208c7389 ("drm/bridge: analogix_dp: Retry bridge enable when it failed") Please let us know if you'd like to have this patch included in a stable tree. -- Thanks, Sasha
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index bf805f156272..3269deec739d 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1169,6 +1169,17 @@ static int analogix_dp_set_bridge(struct analogix_dp_device *dp) if (ret) goto out_dp_init; + /* + * According to DP spec v1.3 chap 3.5.1.2 Link Training, + * We should first make sure the HPD signal is asserted high by device + * when we want to establish a link with it. + */ + ret = analogix_dp_detect_hpd(dp); + if (ret) { + DRM_ERROR("failed to get hpd single ret = %d\n", ret); + goto out_dp_init; + } + ret = analogix_dp_commit(dp); if (ret) goto out_dp_init;