On Tue, Dec 24, 2024 at 08:22:42PM +0200, Cristian Ciocaltea wrote: > The case of having an HDMI bridge in the pipeline which advertises > YUV420 capability via its ->supported_formats and a non-HDMI one that > didn't enable ->ycbcr_420_allowed, is incorrectly handled because > supported_formats is passed as is to the helper initializing the HDMI > connector. > > Ensure HDMI_COLORSPACE_YUV420 is removed from the bitmask passed to > drmm_connector_hdmi_init() when connector's ->ycbcr_420_allowed flag > ends up not being set. > > Fixes: 3ced1c687512 ("drm/display: bridge_connector: handle ycbcr_420_allowed") > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx> > --- > drivers/gpu/drm/display/drm_bridge_connector.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry