#
9dc96d8b |
| 04-Jan-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
libusb: hotplug, use events instead of a timer when possible
Try to fetch events from nlsysevent or devd to determine when to scan the usb bus for devices addition or removal. if none are available
libusb: hotplug, use events instead of a timer when possible
Try to fetch events from nlsysevent or devd to determine when to scan the usb bus for devices addition or removal. if none are available fallback on the regular timer based (4s) scanner
if devd socket or netlink socket is closed or error fallback on the timer based method.
Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D48300
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
2a63c3be |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
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
show more ...
|
Revision tags: release/13.2.0 |
|
#
4c6bcffd |
| 26-Jan-2023 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
libusb(3): Implement libusb_init_context() and the needed structures and definitions.
Differential Revision: https://reviews.freebsd.org/D38212 MFC after: 1 week Sponsored by: NVIDIA Networking
|
Revision tags: release/12.4.0 |
|
#
aa87aa52 |
| 02-Oct-2022 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
libusb(3): Implement libusb_interrupt_event_handler() by exposing existing function.
MFC after: 1 week Sponsored by: NVIDIA Networking
|
Revision tags: release/13.1.0 |
|
#
d94d94e2 |
| 02-Mar-2022 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
libusb(3): Ignore SIGPIPE when initializing the LibUSB v1.0 API.
The LibUSB v1.0 emulation layer uses pipes internally to signal between threads. When USB devices are reset, as part of loading firmw
libusb(3): Ignore SIGPIPE when initializing the LibUSB v1.0 API.
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 MFC after: 1 week Sponsored by: NVIDIA Networking
show more ...
|
Revision tags: release/12.3.0 |
|
#
6847ea50 |
| 11-Jun-2021 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Improve handling of USB device re-open in the LibUSB v1.x API.
Make sure the "device_is_gone" flag is cleared after every successful open, so that the "device_is_gone" flag doesn't persist forever.
Improve handling of USB device re-open in the LibUSB v1.x API.
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 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
04391da3 |
| 09-Jun-2020 |
Kyle Evans <kevans@FreeBSD.org> |
libusb: improve compatibility
Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API. Descriptions and functionality for these derived from the documentation at [0]. The current
libusb: improve compatibility
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
show more ...
|
Revision tags: release/12.1.0 |
|
#
8b3bc70a |
| 08-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r352764 through r353315.
|
#
8495fa08 |
| 02-Oct-2019 |
Kyle Evans <kevans@FreeBSD.org> |
libusb: LIBUSB_DEBUG environment variable override of libusb_set_debug
The debug level generally just controls verbosity of libusb for debugging libusb devices/usage. We allow the environment to set
libusb: LIBUSB_DEBUG environment variable override of libusb_set_debug
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
show more ...
|
Revision tags: release/11.3.0 |
|
#
2aaf9152 |
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
#
ff511f1f |
| 11-Mar-2019 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r344996
|
#
1efeb40d |
| 05-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Fix typos in libusb.
Found by: Denis Ahrens <denis@h3q.com> MFC after: 1 week Sponsored by: Mellanox Technologies
|
Revision tags: release/12.0.0 |
|
#
c0b5e991 |
| 14-Sep-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338595 through r338689, and resolve conflicts.
|
#
540c7229 |
| 12-Sep-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Fix issues about cancelling USB transfers in LibUSB when the USB device has been detached. When a USB device has been detached the kernel file handle stops responding to commands. USB applications wh
Fix issues about cancelling USB transfers in LibUSB when the USB device has 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
show more ...
|
Revision tags: release/11.2.0 |
|
#
5e53a4f9 |
| 26-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
lib: further adoption of SPDX licensing ID tags.
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 pr
lib: further adoption of SPDX licensing ID tags.
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.
show more ...
|
#
c2c014f2 |
| 07-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r323559 through r325504.
|
#
3c5ab8c1 |
| 30-Oct-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r325119
|
#
a2aef24a |
| 29-Oct-2017 |
Eitan Adler <eadler@FreeBSD.org> |
Update several more URLs
- Primarily http -> https - Primarily FreeBSD project URLs
|
Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0 |
|
#
a0c93fa3 |
| 23-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add support for USB streams to the LibUSB v1.0 API and update the libusb(3) manual page.
Approved by: re (gjb) Requested by: swills MFC after: 1 week
|
#
7bdc064b |
| 22-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement libusb_hotplug_register_callback() and 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 aft
Implement libusb_hotplug_register_callback() and 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
show more ...
|
#
a3d81a8a |
| 16-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add missing return statement.
Approved by: re (gjb) MFC after: 1 week
|
#
5b40d960 |
| 16-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add support for libusb_set_auto_detach_kernel_driver() to the LibUSB v1.0 API.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
|
#
0f2c7066 |
| 16-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add support for libusb_get_port_number() to the LibUSB v1.0 API.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
|
#
14b896ce |
| 16-Jun-2016 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement libusb_get_version() and update libusb manual page.
Approved by: re (glebius) Requested by: swills MFC after: 1 week
|