From: Roman Li Date: Thu, 15 Dec 2016 16:51:09 +0000 (-0500) Subject: drm/amd/display: fix hotplug regression after code refactor X-Git-Tag: v4.15-rc1~56^2~23^2~849 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cdc4e7ce4cae74bbe64a0e0ed15655dfa50a8a1;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: fix hotplug regression after code refactor The condition logic of REG_WAIT in dce110_stream_encoder_dp_blank() got inverted after refactoring. Signed-off-by: Roman Li Reviewed-by: Jordan Lazare Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c index 0590e0a6cd07d..b74a29b40a666 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c @@ -635,7 +635,7 @@ static void dce110_stream_encoder_dp_blank( */ REG_WAIT(DP_VID_STREAM_CNTL, DP_VID_STREAM_STATUS, - 1, + 0, 10, max_retries); ASSERT(retries <= max_retries);