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>
1 file changed