Skip to content
Snippets Groups Projects
  1. May 26, 2020
  2. May 19, 2020
  3. May 07, 2020
  4. May 06, 2020
  5. May 05, 2020
  6. May 04, 2020
  7. Apr 30, 2020
  8. Apr 27, 2020
  9. Apr 26, 2020
  10. Apr 24, 2020
    • Scott Anderson's avatar
      libdrm: Handle usb_interface devices for usb parsing · bf63f8ac
      Scott Anderson authored and Emil Velikov's avatar Emil Velikov committed
      
      Currently the code expects that the device found at
      /sys/char/$maj:$min/device for USB devices is a "usb_device". However,
      at least for some devices, such as for the udl driver, they are instead
      a "usb_interface".
      
      A usb_interface is a child of the usb_device we're interested in, so we
      walk up one in the /sys path to get there.
      
      For example, with a USB device I have, trimmed to show the relevant
      information:
      ```
      $ udevadm info /dev/dri/card1
      P: /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4/1-4:1.0/drm/card1
      E: DEVTYPE=drm_minor
      $ udevadm info /sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4/1-4:1.0
      E: DEVTYPE=usb_interface
      E: DRIVER=udl
      $ udevadm info /sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4
      E: DEVTYPE=usb_device
      E: DRIVER=usb
      E: BUSNUM=001
      E: DEVNUM=009
      ```
      
      Signed-off-by: default avatarScott Anderson <scott@anderso.nz>
      bf63f8ac
    • Mikhail Golubev's avatar
      xf86drm: Check non-absolute path only for virtio based devices · 57df0757
      Mikhail Golubev authored and Emil Velikov's avatar Emil Velikov committed
      
      This fixes bug in drmParseSubsystemType() that cases situation when
      subsequent call to readlink() from get_subsystem_type() will result in
      EACCESS.
      
      Signed-off-by: default avatarMikhail Golubev <mikhail.golubev@opensynergy.com>
      57df0757
  11. Apr 23, 2020
  12. Apr 21, 2020
Loading