]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Link train only when link is DP and backend is enabled
authorSamson Tam <Samson.Tam@amd.com>
Mon, 4 Mar 2019 21:21:06 +0000 (16:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:17 +0000 (06:45 -0700)
commitb374f41be4f6d01d508813060c8084cbe2474154
tree7dcdab28680a68e93ea1988e02e2c31a8be3fa6a
parent192978ff7210d7e1f79d3c4fa41ff008e3512a34
drm/amd/display: Link train only when link is DP and backend is enabled

[ Upstream commit 66acd4418d7de131ef3831e52a8af3d2480e5b15 ]

[Why]
In certain cases we do link training when we don't have a backend.

[How]
In dc_link_set_preferred_link_settings(), store preferred link settings
first and then verify that the link is DP and the link stream's backend is
enabled.  If either is false, then we will not do any link retraining.

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc.c