diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2018-01-10 12:23:34 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2018-01-10 12:23:34 -0600 |
commit | 324c917a20a34e2f3059c1aff5d72f1cdbd76060 (patch) | |
tree | 39d58bba3e0b2778669d6b6aed1cfa0e613c6cf2 /src/lib/ecore_drm2/ecore_drm2_device.c | |
parent | ffa276fce3b812372a063431903fa0569d71fcb2 (diff) |
ecore_drm2: Allow non-pci DRM devices to be selected
Summary: This is a tweak to c264ef264f0936632a1603fef45c59a50369631d for D5712 . chosen_dev in the loop was only being set for DRM devices attached to PCI devices. While this is useful for determining if the device is the preferred boot_vga device, There is no apparent requirement (comparing to Weston) for all DRM devices to be attached to a PCI device. (This is considering USB DisplayLink devices. I am not sure how the parent device tree is with these...)
Reviewers: devilhorns, ManMower
Reviewed By: devilhorns, ManMower
Subscribers: cedric, jpeg, #efl
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D5727
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c index da35231ba2..dea67b1ab3 100644 --- a/src/lib/ecore_drm2/ecore_drm2_device.c +++ b/src/lib/ecore_drm2/ecore_drm2_device.c | |||
@@ -127,6 +127,8 @@ _drm2_device_find(Elput_Manager *em, const char *seat) | |||
127 | if (!modeset) | 127 | if (!modeset) |
128 | goto cont; | 128 | goto cont; |
129 | 129 | ||
130 | chosen_dev = dev; | ||
131 | |||
130 | dparent = eeze_udev_syspath_get_parent_filtered(dev, "pci", NULL); | 132 | dparent = eeze_udev_syspath_get_parent_filtered(dev, "pci", NULL); |
131 | if (!dparent) | 133 | if (!dparent) |
132 | { | 134 | { |
@@ -141,7 +143,6 @@ _drm2_device_find(Elput_Manager *em, const char *seat) | |||
141 | { | 143 | { |
142 | const char *id; | 144 | const char *id; |
143 | 145 | ||
144 | chosen_dev = dev; | ||
145 | id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga"); | 146 | id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga"); |
146 | if (id) | 147 | if (id) |
147 | { | 148 | { |