From: Zeyu Fan Date: Mon, 17 Apr 2017 23:02:19 +0000 (-0400) Subject: drm/amd/display: Block YCbCr formats for eDP. Revert previous change. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=89aed24c180be9be215923136faebcda0aa344a1;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Block YCbCr formats for eDP. Revert previous change. Signed-off-by: Zeyu Fan Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index 1a84ee0105da..812c29982a2e 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -1026,9 +1026,13 @@ bool dce110_link_encoder_validate_output_with_stream( break; case SIGNAL_TYPE_DISPLAY_PORT: case SIGNAL_TYPE_DISPLAY_PORT_MST: - case SIGNAL_TYPE_EDP: is_valid = dce110_link_encoder_validate_dp_output( - enc110, &stream->public.timing); + enc110, &stream->public.timing); + break; + case SIGNAL_TYPE_EDP: + is_valid = + (stream->public.timing. + pixel_encoding == PIXEL_ENCODING_RGB) ? true : false; break; case SIGNAL_TYPE_VIRTUAL: is_valid = true;