teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0329-terminal-make-drm-connectors-first-level-devices.patch

Zbigniew Jędrzejewski-Szmek 62fe94
From c1102405c1c151b693cf92f1b704a4eb8aacee73 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: David Herrmann <dh.herrmann@gmail.com>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Sat, 20 Sep 2014 09:44:14 +0200
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] terminal: make drm-connectors first-level devices
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
So far, we only forward DRM cards via sysview APIs. However, with MST,
Zbigniew Jędrzejewski-Szmek 62fe94
connectors can be hotplugged, too. Forward the connectors as first-level
Zbigniew Jędrzejewski-Szmek 62fe94
devices via sysview so API users can react to changing DRM connectors.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 src/libsystemd-terminal/sysview.c | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/src/libsystemd-terminal/sysview.c b/src/libsystemd-terminal/sysview.c
Zbigniew Jędrzejewski-Szmek 62fe94
index 23d564d6a0..161ea117a4 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/src/libsystemd-terminal/sysview.c
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/src/libsystemd-terminal/sysview.c
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -895,7 +895,7 @@ static int context_ud_hotplug(sysview_context *c, struct udev_device *d) {
Zbigniew Jędrzejewski-Szmek 62fe94
 
Zbigniew Jędrzejewski-Szmek 62fe94
                 if (streq(subsystem, "input") && startswith(sysname, "event") && safe_atou(sysname + 5, &t) >= 0)
Zbigniew Jędrzejewski-Szmek 62fe94
                         type = SYSVIEW_DEVICE_EVDEV;
Zbigniew Jędrzejewski-Szmek 62fe94
-                else if (streq(subsystem, "drm") && startswith(sysname, "card") && safe_atou(sysname + 4, &t) >= 0)
Zbigniew Jędrzejewski-Szmek 62fe94
+                else if (streq(subsystem, "drm") && startswith(sysname, "card"))
Zbigniew Jędrzejewski-Szmek 62fe94
                         type = SYSVIEW_DEVICE_DRM;
Zbigniew Jędrzejewski-Szmek 62fe94
                 else
Zbigniew Jędrzejewski-Szmek 62fe94
                         type = (unsigned)-1;