summaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-6.6/950-0736-drm-vc4-vec-Add-the-margin-properties-to-the-connect.patch
blob: 3836cde15e3ded5d65e87e516305ce0a34f85f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 138752fb6ebd4f86751da00f20ed3a0139cde389 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Fri, 24 Nov 2023 16:22:10 +0000
Subject: [PATCH 0736/1085] 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 <dave.stevenson@raspberrypi.com>
---
 drivers/gpu/drm/vc4/vc4_vec.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/gpu/drm/vc4/vc4_vec.c
+++ b/drivers/gpu/drm/vc4/vc4_vec.c
@@ -584,6 +584,8 @@ static int vc4_vec_connector_init(struct
 
 	drm_object_attach_property(&connector->base, prop, legacy_default_mode);
 
+	drm_connector_attach_tv_margin_properties(connector);
+
 	drm_connector_attach_encoder(connector, &vec->encoder.base);
 
 	return 0;