Hi!

On Mon, Jan 29, 2018 at 08:10:06PM +0100, Hans Petter Selasky wrote:
> Does the attached patch for FreeBSD's libusb solve your issue?

I have just patched, build and installed libusb.  I removed the
libusb_open() / libusb_close() calls from usb_get_port_path() in
libsigrok and tested.
https://github.com/sigrokproject/libsigrok/blob/a9010323ddf4e479663e871386c05db05ea3522e/src/usb.c#L473-L491


Unfortunately, the problem is still present.  On the first enumeration,
libusb_get_port_numbers() returns 3 and the firmware is send to the
device successfully.  Then, when lbsigrok attempt to re-enumerate
devices, libusb_get_port_numbers() returns -12
(LIBUSB_ERROR_NOT_SUPPORTED).



I am sure that the firmware is sent successfully because usbconfig(8)
shows the following when I plug the device:
| ugen0.10: <vendor 0x04b4 product 0x8613> at usbus0, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON (100mA)
and after the enumeration failure, I can see this instead:
| ugen0.10: <sigrok fx2lafw> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON 
(100mA)


Regards,
Romain

-- 
Romain Tartière <rom...@blogreen.org>        http://romain.blogreen.org/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)

Attachment: signature.asc
Description: PGP signature

Reply via email to