MFC r349409 and r349410:Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently alldevices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATEflag. Make sure when the flag is not sp
MFC r349409 and r349410:Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently alldevices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATEflag. Make sure when the flag is not specified no arrival events aregenerated for currently enumerated devices.Sponsored by: Mellanox Technologies
show more ...
MFC r348797:Fix for reading the configuration descriptor in libusb. Catch invalidconfiguration descriptor reads early on to avoid issues with devicesthat don't check for a valid USB configuration
MFC r348797:Fix for reading the configuration descriptor in libusb. Catch invalidconfiguration descriptor reads early on to avoid issues with devicesthat don't check for a valid USB configuration read request.Submitted by: [email protected]PR: 238412
MFC r344795:Fix typos in libusb.Found by: Denis Ahrens <[email protected]>Sponsored by: Mellanox Technologies
libusb(3): Update the link to the libusb homepage.While here, pet mandoc & igor.Reviewed by: bcr, hselaskyApproved by: re (kib), krion (mentor, implicit), mat (mentor, implicit)Differential Rev
libusb(3): Update the link to the libusb homepage.While here, pet mandoc & igor.Reviewed by: bcr, hselaskyApproved by: re (kib), krion (mentor, implicit), mat (mentor, implicit)Differential Revision: https://reviews.freebsd.org/D17516
When multiple threads are involved receiving completion events in LibUSBmake sure there is always a master polling thread, by setting the "ctx_handler"field in the context. Else the reception of co
When multiple threads are involved receiving completion events in LibUSBmake sure there is always a master polling thread, by setting the "ctx_handler"field in the context. Else the reception of completion events can stop.This happens if event threads are created and destroyed during runtime.Found by: Ludovic Rousseau <[email protected]>PR: 231742MFC after: 1 weekApproved by: re (kib)Sponsored by: Mellanox Technologies
Improve LibUSB debugging by simultaneously allowing both functionand transfer prints. Make sure the debug level comes from thecorrect USB context.Found by: Ludovic Rousseau <ludovic.rousseau+fre
Improve LibUSB debugging by simultaneously allowing both functionand transfer prints. Make sure the debug level comes from thecorrect USB context.Found by: Ludovic Rousseau <[email protected]>PR: 231264MFC after: 1 weekApproved by: re (kib)Sponsored by: Mellanox Technologies
Fix issues about cancelling USB transfers in LibUSB when the USB device hasbeen detached. When a USB device has been detached the kernel file handlestops responding to commands. USB applications wh
Fix issues about cancelling USB transfers in LibUSB when the USB device hasbeen detached. When a USB device has been detached the kernel file handlestops responding to commands. USB applications which continue to run afterthe USB device has been detached, depend on LibUSB generated events to teardown its pending USB transfers. Add code to handle the needed cleanup whenprocessing the USB transfer(s) fails and prevent new USB transfer(s) frombeing submitted.Found by: Ludovic Rousseau <[email protected]>PR: 231076MFC after: 1 weekApproved by: re (gjb)Sponsored by: Mellanox Technologies
Improve the userspace USB string reading function in LibUSB.Some USB devices does not allow a partial descriptor readout.Found by: bz @MFC after: 1 weekSponsored by: Mellanox Technologies
Allow the libusb20_dev_get_port_path() function to be called when theUSB device is closed. This fixes a compatibility issue with upstreamlibusb.Found by: romain@MFC after: 1 week
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorpr
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Update several more URLs- Primarily http -> https- Primarily FreeBSD project URLs
libusb(3): Expose device caps as libusb_bos_descriptor::dev_capabilitySome libusb consumers in Linux-land (in this case, libusb4java) expect adev_capability member that they can use to enumerate t
libusb(3): Expose device caps as libusb_bos_descriptor::dev_capabilitySome libusb consumers in Linux-land (in this case, libusb4java) expect adev_capability member that they can use to enumerate the devicecapabilities.No particular layout is expected of this, just that it can be traversedusing the bLength member until bNumDeviceCapabilities are read and that theconsumer may then use one of the libusb_get_*_descriptor methods to extractspecific (usb 2.0 vs. ss) capability information.In collaboration with: hselaskyReviewed by: hselaskyApproved by: emaste (mentor)Differential Revision: https://reviews.freebsd.org/D11494
Fix libusb20_dev_get_desc(3) to use the "vendor product" order, not"product vendor". This is consistent with how it's generally done.The ordering is visible eg in usbconfig(8) output.Note to self
Fix libusb20_dev_get_desc(3) to use the "vendor product" order, not"product vendor". This is consistent with how it's generally done.The ordering is visible eg in usbconfig(8) output.Note to self: MFC this to 9 and 8.Reviewed by: hselasky@MFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D8258
Fix array size issue when using the pre-scaling feature forISOCHRONOUS USB transfers. Make sure enough length and buffer pointersare allocated when setting up the libusb transfer structure to suppo
Fix array size issue when using the pre-scaling feature forISOCHRONOUS USB transfers. Make sure enough length and buffer pointersare allocated when setting up the libusb transfer structure to supportthe maximum number of frames the kernel can handle.MFC after: 1 week
Resolve issue with libusb C++ header file inclusion.Approved by: re (marius)PR: 210509MFC after: 1 week
Add support for USB streams to the LibUSB v1.0 API and update thelibusb(3) manual page.Approved by: re (gjb)Requested by: swillsMFC after: 1 week
Implement libusb_hotplug_register_callback() andlibusb_hotplug_deregister_callback() for the LibUSB v1.0 API andupdate the libusb(3) manual page.Approved by: re (kib)Requested by: swillsMFC aft
Implement libusb_hotplug_register_callback() andlibusb_hotplug_deregister_callback() for the LibUSB v1.0 API andupdate the libusb(3) manual page.Approved by: re (kib)Requested by: swillsMFC after: 1 week
Add missing return statement.Approved by: re (gjb)MFC after: 1 week
Add multiple missing descriptor parsing functions to the LibUSB v1.0 API.Approved by: re (kib)Requested by: swillsMFC after: 1 week
Add support for libusb_set_auto_detach_kernel_driver() to the LibUSB v1.0 API.Approved by: re (kostikbel)Requested by: swillsMFC after: 1 week
Add support for libusb_get_port_number() to the LibUSB v1.0 API.Approved by: re (kostikbel)Requested by: swillsMFC after: 1 week
Define LIBUSB_API_VERSION.Approved by: re (kostikbel)Requested by: swillsMFC after: 1 week
Implement libusb_get_version() and update libusb manual page.Approved by: re (glebius)Requested by: swillsMFC after: 1 week
Fix compile warning.Approved by: re (delphij)MFC after: 1 week
123456