1 From 68b0ff3549148e614e1733d773cee8e689c763c6 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 20 Aug 2024 16:25:10 +0100
4 Subject: [PATCH] drm: Set non-desktop property to true for writeback and
7 The non-desktop property "Indicates the output should be ignored for
8 purposes of displaying a standard desktop environment or console."
10 That sounds like it should be true for all writeback and virtual
11 connectors as you shouldn't render a desktop to them, so set it
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 drivers/gpu/drm/drm_connector.c | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
19 --- a/drivers/gpu/drm/drm_connector.c
20 +++ b/drivers/gpu/drm/drm_connector.c
21 @@ -361,7 +361,8 @@ static int __drm_connector_init(struct d
23 drm_object_attach_property(&connector->base,
24 config->non_desktop_property,
26 + (connector_type != DRM_MODE_CONNECTOR_VIRTUAL &&
27 + connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1;
28 drm_object_attach_property(&connector->base,
29 config->tile_property,