| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a hotplug callback has been registered, and the program using
libusb is calling libusb_exit then the thread handler is set to
NO_THREAD which result in the variable controlling the loop the be set
to 0, it does a last pass through device available without having done
a scan, which result in a sigbus after it tried to unregister all the
devices.
directly break the loop instead and cleanup the list of devices
this fixes the tests with LGPLed libusb's hotplugtest program
MFC After: 3 days
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D48298
(cherry picked from commit ba5834b8e11fd002a663d083a464e397e76cb3a9)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are not 100% compatible with 1.0.16, but implement some
functionality from that version that is required by certain ports.
PR: 277799
PR: 279555 (exp-run)
Event: Kitchener-Waterloo Hackathon 202406
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45514
(cherry picked from commit 5654b42142e1f689b26d405c90379b85f22349a0)
(cherry picked from commit 5bd6e6c1ddff7f10e8b86703536d81af8ce0532b)
|
| |
|
|
|
|
|
| |
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Similar commit in main:
(cherry picked from commit fa9896e082a1)
|
| |
|
|
|
|
|
| |
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
|
| |
|
|
|
|
|
| |
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
Similar commit in main:
(cherry picked from commit 2a63c3be1582)
|
| |
|
|
|
|
|
|
|
|
|
| |
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix
(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
|
| |
|
|
|
|
|
|
|
|
| |
This codepath used uint64_t's in place of pointers in structs and
arrays to allow 32-bit code to use 64-bit version of ioctls. Now
that we support 32-bit compat natively this is no longer needed.
Reviewed by: hselasky, jrtc27 (prior version)
(cherry picked from commit 8010f4ad21b6120e929bda4eed27696e63514677)
|
| |
|
|
|
|
|
|
|
| |
definitions.
Differential Revision: https://reviews.freebsd.org/D38212
Sponsored by: NVIDIA Networking
(cherry picked from commit 4c6bcffd04f9d0b6cb57af0ffcc9be3098fe950c)
|
| |
|
|
|
|
|
|
| |
function.
Sponsored by: NVIDIA Networking
(cherry picked from commit aa87aa52326be7b726664dba65e91ec3d8160f48)
|
| |
|
|
|
|
|
|
|
|
|
| |
The LibUSB v1.0 emulation layer uses pipes internally to signal between
threads. When USB devices are reset, as part of loading firmware, SIGPIPE
may happen, and that is expected and should be ignored.
PR: 261891
Sponsored by: NVIDIA Networking
(cherry picked from commit d94d94e2c06b4331f706a3b4eca058041294ea05)
|
| |
|
|
|
|
|
|
|
|
|
| |
Make sure the "device_is_gone" flag is cleared after every successful open,
so that the "device_is_gone" flag doesn't persist forever.
Found by: sergii.dmytruk@3mdeb.com
PR: 256296
Sponsored by: Mellanox Technologies // NVIDIA Networking
(cherry picked from commit 6847ea50196f1a685be408a24f01cb8d407da19c)
|
| |
|
|
|
|
|
|
| |
Now the .pc ends up in the correct package (-dev)
Reviewed by: bapt, emaste
Differential Revision: https://reviews.freebsd.org/D29172
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
interface numbering for USB descriptors in userspace. Else certain USB
control requests using the interface number, won't be recognized by the
USB firmware.
Refer to section 9.2.3 in the USB 2.0 specification:
Interfaces are numbered from zero to one less than the number of concurrent interfaces
supported by the configuration.
PR: 251784
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
Notes:
svn path=/head/; revision=368632
|
| |
|
|
|
|
|
|
|
|
| |
- skipping paragraph macro: Pp after Sh
- sections out of conventional order: Sh EXAMPLES
- whitespace at end of input line
- normalizing date format
Notes:
svn path=/head/; revision=366583
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API.
Descriptions and functionality for these derived from the
documentation at [0]. The current set of capabilities are all supported by
libusb.
These were detected as missing after updating net/freerdp to 2.1.1, which
attempted to use both.
[0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html
Reviewed by: hselasky
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25194
Notes:
svn path=/head/; revision=361977
|
| |
|
|
|
|
|
|
| |
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=358841
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D23430
Submitted by: cem
Reported by: Coverity
Coverity CID: 1368773
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=357298
|
| |
|
|
|
|
|
|
|
|
| |
This function is useful when debugging USB device issues.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=356136
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Update a bunch of Makefile.depend files as
a result of adding Makefile.depend.options files
Reviewed by: bdrewery
MFC after: 1 week
Sponsored by: Juniper Networks
Differential Revision: https://reviews.freebsd.org/D22494
Notes:
svn path=/head/; revision=355617
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The debug level generally just controls verbosity of libusb for debugging
libusb devices/usage. We allow the environment to set the debug level
independent of the application, but the application will always override
this if it explicitly sets the debug level.
Changing the environment is easy, but patching the software to change the
debug level isn't necessarily easy or possible. Further, there's this
write-only debug_fixed variable that would seem to imply that the debug
level should be fixed, but it isn't currently used. Change the logic to use
strtol() so we can detect real 0 vs. conversion failure, then honor
debug_fixed in libusb_set_debug.
Reviewed by: hselasky
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D21877
Notes:
svn path=/head/; revision=353009
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21506
Notes:
svn path=/head/; revision=351858
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
libusb_hotplug_register_callback().
Else when registering multiple filters the same USB device may appear twice in
the list.
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=349410
|
| |
|
|
|
|
|
|
|
|
|
|
| |
devices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATE
flag. Make sure when the flag is not specified no arrival events are
generated for currently enumerated devices.
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=349409
|
| |
|
|
|
|
|
|
|
|
|
|
| |
configuration descriptor reads early on to avoid issues with devices
that don't check for a valid USB configuration read request.
Submitted by: takahiro.kurosawa@gmail.com
PR: 238412
MFC after: 3 days
Notes:
svn path=/head/; revision=348797
|
| |
|
|
|
|
|
|
|
| |
Found by: Denis Ahrens <denis@h3q.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=344795
|
| |
|
|
|
|
|
|
|
|
|
| |
While here, pet mandoc & igor.
Reviewed by: bcr, hselasky
Approved by: re (kib), krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D17516
Notes:
svn path=/head/; revision=339305
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
make 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 <ludovic.rousseau+freebsd@gmail.com>
PR: 231742
MFC after: 1 week
Approved by: re (kib)
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=338993
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
and transfer prints. Make sure the debug level comes from the
correct USB context.
Found by: Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com>
PR: 231264
MFC after: 1 week
Approved by: re (kib)
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=338679
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
been detached. When a USB device has been detached the kernel file handle
stops responding to commands. USB applications which continue to run after
the USB device has been detached, depend on LibUSB generated events to tear
down its pending USB transfers. Add code to handle the needed cleanup when
processing the USB transfer(s) fails and prevent new USB transfer(s) from
being submitted.
Found by: Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com>
PR: 231076
MFC after: 1 week
Approved by: re (gjb)
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=338616
|
| |
|
|
|
|
|
|
|
|
|
| |
Some USB devices does not allow a partial descriptor readout.
Found by: bz @
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=335669
|
| |
|
|
|
|
|
|
|
|
|
| |
USB device is closed. This fixes a compatibility issue with upstream
libusb.
Found by: romain@
MFC after: 1 week
Notes:
svn path=/head/; revision=331419
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Notes:
svn path=/head/; revision=326219
|
| |
|
|
|
|
|
| |
Sponsored by: Dell EMC Isilon
Notes:
svn path=/head/; revision=325188
|
| |
|
|
|
|
|
|
| |
- Primarily http -> https
- Primarily FreeBSD project URLs
Notes:
svn path=/head/; revision=325096
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some libusb consumers in Linux-land (in this case, libusb4java) expect a
dev_capability member that they can use to enumerate the device
capabilities.
No particular layout is expected of this, just that it can be traversed
using the bLength member until bNumDeviceCapabilities are read and that the
consumer may then use one of the libusb_get_*_descriptor methods to extract
specific (usb 2.0 vs. ss) capability information.
In collaboration with: hselasky
Reviewed by: hselasky
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D11494
Notes:
svn path=/head/; revision=322322
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
"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 month
Differential Revision: https://reviews.freebsd.org/D8258
Notes:
svn path=/head/; revision=307774
|
| |
|
|
|
|
|
|
|
|
|
| |
ISOCHRONOUS USB transfers. Make sure enough length and buffer pointers
are allocated when setting up the libusb transfer structure to support
the maximum number of frames the kernel can handle.
MFC after: 1 week
Notes:
svn path=/head/; revision=305284
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (marius)
PR: 210509
MFC after: 1 week
Notes:
svn path=/head/; revision=302171
|
| |
|
|
|
|
|
|
|
|
|
| |
libusb(3) manual page.
Approved by: re (gjb)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=302125
|
| |
|
|
|
|
|
|
|
|
|
|
| |
libusb_hotplug_deregister_callback() for the LibUSB v1.0 API and
update the libusb(3) manual page.
Approved by: re (kib)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=302080
|
| |
|
|
|
|
|
|
| |
Approved by: re (gjb)
MFC after: 1 week
Notes:
svn path=/head/; revision=301969
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (kib)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=301968
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=301966
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=301964
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=301957
|
| |
|
|
|
|
|
|
|
| |
Approved by: re (glebius)
Requested by: swills
MFC after: 1 week
Notes:
svn path=/head/; revision=301956
|
| |
|
|
|
|
|
|
| |
Approved by: re (delphij)
MFC after: 1 week
Notes:
svn path=/head/; revision=301846
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
reset command, alternate setting command or set configuration
command. Else LibUSB v1.0 will not re-open the endpoints which the
kernel closes and the USB application might wait infinitely for
transfers to complete.
Approved by: re (hrs)
MFC after: 3 days
Notes:
svn path=/head/; revision=301842
|
| |
|
|
|
|
|
| |
No functional change.
Notes:
svn path=/head/; revision=298896
|
| |\
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-pkg/; revision=297824
|