commit | f6068e83c4f5e5fba16b23b6a87f1f6d7ab7200a | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Mon Sep 07 10:30:54 2020 +0200 |
committer | Hans de Goede <hdegoede@redhat.com> | Mon Sep 14 09:48:14 2020 +0200 |
tree | 8a57225c8ac34e616e20f75b901adc3f5151aa16 | |
parent | a6bfd45deab1e9550a7e7f8bf618b484da7e2816 [diff] |
linux: Fix libusb_get_device_speed() not working on wrapped devices We don't have a sysfs_dir for wrapped devices, so we cannot read the speed from sysfs. The Linux kernel has supported a new ioctl to get the speed directly from the fd for a while now, use that when we don't have sysfs access. Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1871818 Reported-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>