summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Stevenson <dave.stevenson@raspberrypi.com>2024-08-20 16:25:10 +0100
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>2024-11-07 11:45:02 +0000
commit68b0ff3549148e614e1733d773cee8e689c763c6 (patch)
tree43530901e6629b04108132be321ee370ff8aa67e /drivers/gpu
parentca621585c573cae54dc1235d90822e8bcef2f73d (diff)
downloadlinux-rpi-68b0ff3549148e614e1733d773cee8e689c763c6.tar.gz
linux-rpi-68b0ff3549148e614e1733d773cee8e689c763c6.tar.bz2
linux-rpi-68b0ff3549148e614e1733d773cee8e689c763c6.zip
drm: Set non-desktop property to true for writeback and virtual connectors
The non-desktop property "Indicates the output should be ignored for purposes of displaying a standard desktop environment or console." That sounds like it should be true for all writeback and virtual connectors as you shouldn't render a desktop to them, so set it by default. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_connector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 476ea750acf4..b8696651dedf 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -361,7 +361,8 @@ static int __drm_connector_init(struct drm_device *dev,
drm_object_attach_property(&connector->base,
config->non_desktop_property,
- 0);
+ (connector_type != DRM_MODE_CONNECTOR_VIRTUAL &&
+ connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1;
drm_object_attach_property(&connector->base,
config->tile_property,
0);