Feedback for portable libusb code
Romain Tartière
romain at blogreen.org
Mon Feb 5 15:36:09 UTC 2018
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 <romain at 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20180205/1062950e/attachment.sig>
More information about the freebsd-usb
mailing list