-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: delay opening USB device until enumeration in one of the USB loo…
…kup functions Refactor USB code not to open USB devices as soon as they register, but when needed for one of the lookup functions (usb_list_devices, usb_device_for_name, usb_device_for_address). This way, when a device open fails, it can be retried at a later time, when USB enumeration happens again. This is specifically useful in Linux when new devices are owned by `root:root` and need a chmod to be usable by a non-root user.
- Loading branch information
Showing
2 changed files
with
103 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters