meta-ti: weston: remove unneeded ivi shell patches and use standard ivi-controller
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-arago / weston / weston / 0001-udev-seat-restrict-udev-enumeration-to-card0.patch
1 From e8e7a9f7dfa164a75fdbdca87622a2e13334478a Mon Sep 17 00:00:00 2001
2 From: Anand Balagopalakrishnan <anandb@ti.com>
3 Date: Sat, 23 Jan 2016 22:48:07 +0530
4 Subject: [PATCH 1/1] udev-seat: restrict udev enumeration to card0
5
6 In case of separate GPU and Display devices as found in embedded systems, we
7 could have modeset node and render node controlled by different drivers.
8 There is a distinct possibility that udev enumeration returns the DRM device
9 corresponding to render node as the primary DRM device.
10
11 Obviously, modeset operations cannot be done on the GPU DRM device.
12
13 Restrict the udev enumeration to card0 and ensure that DRM device corresponding
14 to display is returned as the primary DRM device.
15
16 Upstream-Status: Pending
17
18 Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
19 ---
20  src/compositor-drm.c |    2 +-
21  1 file changed, 1 insertion(+), 1 deletion(-)
22
23 diff --git a/src/compositor-drm.c b/src/compositor-drm.c
24 index 6777bf8..59c2cc5 100644
25 --- a/src/compositor-drm.c
26 +++ b/src/compositor-drm.c
27 @@ -2827,7 +2827,7 @@ find_primary_gpu(struct drm_backend *b, const char *seat)
28
29         e = udev_enumerate_new(b->udev);
30         udev_enumerate_add_match_subsystem(e, "drm");
31 -       udev_enumerate_add_match_sysname(e, "card[0-9]*");
32 +       udev_enumerate_add_match_sysname(e, "card0");
33
34         udev_enumerate_scan_devices(e);
35         drm_device = NULL;
36 --
37 1.7.9.5