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)
commitcdb39798082cde564beeab0ca47a469254122ccd
treebe469e9edc96382db4633efebb337c5fa1db0d77
parentdc75dd707cb558b5e757d839620cf317f96bf578
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