]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add return value for detect dp.
authorYongqiang Sun <yongqiang.sun@amd.com>
Tue, 23 Jan 2018 16:39:09 +0000 (11:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:32 +0000 (14:19 -0500)
commit27b79ba155adacac66a13966a177aa80f5126177
treebe469e9edc96382db4633efebb337c5fa1db0d77
parente6294b75249727cc296dd47f0ed1aa05a4eb62c0
drm/amd/display: Add return value for detect dp.

System soft hang when hotplug specific 4K DP panel
due to link caps read error and incorrect link setting
parmas to enable dp.
Add status check for DPCD read and add return value
for detect dp, in case of false, return from caller,
avoid further false operation.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h