Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/atomic: add interlaced and ycbcr_420 flags to connector's state dump

Although the interlace_allowed and ycbcr_420_allowed flags are a part of
the struct drm_connector rather than struct drm_connector_state, still
include them into state dump in order to ease debugging of the setup
issues.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241019-bridge-yuv420-v1-2-d74efac9e4e6@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

+2
+2
drivers/gpu/drm/drm_atomic.c
··· 1132 1132 drm_printf(p, "connector[%u]: %s\n", connector->base.id, connector->name); 1133 1133 drm_printf(p, "\tcrtc=%s\n", state->crtc ? state->crtc->name : "(null)"); 1134 1134 drm_printf(p, "\tself_refresh_aware=%d\n", state->self_refresh_aware); 1135 + drm_printf(p, "\tinterlace_allowed=%d\n", connector->interlace_allowed); 1136 + drm_printf(p, "\tycbcr_420_allowed=%d\n", connector->ycbcr_420_allowed); 1135 1137 drm_printf(p, "\tmax_requested_bpc=%d\n", state->max_requested_bpc); 1136 1138 drm_printf(p, "\tcolorspace=%s\n", drm_get_colorspace_name(state->colorspace)); 1137 1139