From: Dave Stevenson Date: Wed, 19 Jun 2024 15:39:13 +0000 (+0100) Subject: drm/vc4: vec: Add the margin properties to the connector X-Git-Tag: v6.11-rc1~141^2~15^2~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbe675b3696ef62a69e16d8fc85a6358eac63b3d;p=thirdparty%2Fkernel%2Flinux.git drm/vc4: vec: Add the margin properties to the connector All the handling for the properties was present, but they were never attached to the connector to allow userspace to change them. Add them to the connector. Signed-off-by: Dave Stevenson Reviewed-by: Maxime Ripard Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20240619153913.2804051-4-dave.stevenson@raspberrypi.com --- diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index 5fdde6f28d862..070813b8aff86 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -529,6 +529,8 @@ static int vc4_vec_connector_init(struct drm_device *dev, struct vc4_vec *vec) drm_object_attach_property(&connector->base, prop, VC4_VEC_TV_MODE_NTSC); + drm_connector_attach_tv_margin_properties(connector); + drm_connector_attach_encoder(connector, &vec->encoder.base); return 0;