commit | cbd399990f3f545635493bbe3583d385b165d2d7 | [log] [tgz] |
---|---|---|
author | Linus Walleij <triad@df.lth.se> | Sun Oct 21 00:43:38 2012 +0200 |
committer | Linus Walleij <triad@df.lth.se> | Sun Oct 21 00:43:38 2012 +0200 |
tree | ba1c3aeab7faa551a759b033e720dfec0668c540 | |
parent | 9cf4598b786dbdbab0b812aa9332ffe69cef6ba1 [diff] |
Probe around in sysfs in Linux, look if the device has three endpoints, one bulk in, one bulk out, one interrupt in. Unless it has this: do not proceed to open the device. This should fix most lockups caused by libusb opening sensitive devices to examine them: now we only do this if we really need to take a closer look. Signed-off-by: Linus Walleij <triad@df.lth.se>