| #
99d5cf25
|
| 12-Jun-2025 |
ShengYi Hung <aokblast@FreeBSD.org> |
libusb: implement libusb_setlocale to support different locale of error message
Upstream libusb identifies languages using only the first two characters of the language code. We adopt the same appro
libusb: implement libusb_setlocale to support different locale of error message
Upstream libusb identifies languages using only the first two characters of the language code. We adopt the same approach to maintain API compatibility.
Currently, only English and Mandarin are supported, as other languages are not yet implemented.
Reviewed by: kevans Approved by: markj (mentor) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50820
show more ...
|
| #
bca5df45
|
| 04-Jun-2025 |
ShengYi Hung <aokblast@FreeBSD.org> |
libusb: replace LOG_LEVEL with DEBUG_LEVEL
The libusb set debug level by libusb_log_level instead of libusb_debug_level. We switch to libusb_log_level for better compatibility with the upstream libu
libusb: replace LOG_LEVEL with DEBUG_LEVEL
The libusb set debug level by libusb_log_level instead of libusb_debug_level. We switch to libusb_log_level for better compatibility with the upstream libusb.
Additionally, The upstream libusb has an option allows user to override the log function with a user-defined callback. To support the callback function with a single string without va_arg, we refactor the log facility as a function instead of a macro and parse all va_args inside.
The legacy debug_level enum has been removed to enforce maintainer migrate from their deprecated source code.
Reviewed by: kevans Approved by: markj (mentor), lwhsu (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50680
show more ...
|
| #
4c556a4e
|
| 12-Jun-2025 |
Aymeric Wibo <obiwac@gmail.com> |
libusb: implement `libusb_get_parent`
Newer versions of drivers such as libwacom (graphics tablets) or libfprint (fingerprint scanners) call g_usb_device_get_parent. This in turn calls libusb_get_p
libusb: implement `libusb_get_parent`
Newer versions of drivers such as libwacom (graphics tablets) or libfprint (fingerprint scanners) call g_usb_device_get_parent. This in turn calls libusb_get_parent on platforms which implement it, and returns NULL on platforms that don't. This patch implements this function on FreeBSD.
Reviewed by: bapt, kevans Differential Revision: https://reviews.freebsd.org/D46992
show more ...
|
| #
ae28929b
|
| 15-May-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
libusb: use eventfd
Simplify libusb code by replacing pipe(2) inter thread event mecanism with eventfd(2).
MFC After: 3 weeks Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/
libusb: use eventfd
Simplify libusb code by replacing pipe(2) inter thread event mecanism with eventfd(2).
MFC After: 3 weeks Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D50360
show more ...
|
| #
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 ...
|
| #
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 ...
|
| #
7f49ce7a
|
| 27-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349476
Sponsored by: The FreeBSD Foundation
|
| #
a41b0ec1
|
| 26-Jun-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all devices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATE flag. Make sure when the flag is not specified no arrival events
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all 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
show more ...
|
| #
01d4e214
|
| 05-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339200.
Sponsored by: The FreeBSD Foundation
|
| #
c0b5e991
|
| 14-Sep-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338595 through r338689, and resolve conflicts.
|
| #
5b21ba5c
|
| 14-Sep-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Improve LibUSB debugging by simultaneously allowing both function and transfer prints. Make sure the debug level comes from the correct USB context.
Found by: Ludovic Rousseau <ludovic.rousseau+fre
Improve LibUSB debugging by simultaneously allowing both function 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
show more ...
|
| #
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 ...
|
| #
99d5cf25
|
| 12-Jun-2025 |
ShengYi Hung <aokblast@FreeBSD.org> |
libusb: implement libusb_setlocale to support different locale of error message
Upstream libusb identifies languages using only the first two characters of the language code. We adopt the same appro
libusb: implement libusb_setlocale to support different locale of error message
Upstream libusb identifies languages using only the first two characters of the language code. We adopt the same approach to maintain API compatibility.
Currently, only English and Mandarin are supported, as other languages are not yet implemented.
Reviewed by: kevans Approved by: markj (mentor) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50820
show more ...
|
| #
bca5df45
|
| 04-Jun-2025 |
ShengYi Hung <aokblast@FreeBSD.org> |
libusb: replace LOG_LEVEL with DEBUG_LEVEL
The libusb set debug level by libusb_log_level instead of libusb_debug_level. We switch to libusb_log_level for better compatibility with the upstream libu
libusb: replace LOG_LEVEL with DEBUG_LEVEL
The libusb set debug level by libusb_log_level instead of libusb_debug_level. We switch to libusb_log_level for better compatibility with the upstream libusb.
Additionally, The upstream libusb has an option allows user to override the log function with a user-defined callback. To support the callback function with a single string without va_arg, we refactor the log facility as a function instead of a macro and parse all va_args inside.
The legacy debug_level enum has been removed to enforce maintainer migrate from their deprecated source code.
Reviewed by: kevans Approved by: markj (mentor), lwhsu (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50680
show more ...
|
| #
4c556a4e
|
| 12-Jun-2025 |
Aymeric Wibo <obiwac@gmail.com> |
libusb: implement `libusb_get_parent`
Newer versions of drivers such as libwacom (graphics tablets) or libfprint (fingerprint scanners) call g_usb_device_get_parent. This in turn calls libusb_get_p
libusb: implement `libusb_get_parent`
Newer versions of drivers such as libwacom (graphics tablets) or libfprint (fingerprint scanners) call g_usb_device_get_parent. This in turn calls libusb_get_parent on platforms which implement it, and returns NULL on platforms that don't. This patch implements this function on FreeBSD.
Reviewed by: bapt, kevans Differential Revision: https://reviews.freebsd.org/D46992
show more ...
|
| #
ae28929b
|
| 15-May-2025 |
Baptiste Daroussin <bapt@FreeBSD.org> |
libusb: use eventfd
Simplify libusb code by replacing pipe(2) inter thread event mecanism with eventfd(2).
MFC After: 3 weeks Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/
libusb: use eventfd
Simplify libusb code by replacing pipe(2) inter thread event mecanism with eventfd(2).
MFC After: 3 weeks Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D50360
show more ...
|
| #
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 ...
|
| #
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 ...
|
| #
7f49ce7a
|
| 27-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349476
Sponsored by: The FreeBSD Foundation
|
| #
a41b0ec1
|
| 26-Jun-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all devices are enumerated regardless of of the LIBUSB_HOTPLUG_ENUMERATE flag. Make sure when the flag is not specified no arrival events
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all 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
show more ...
|
| #
01d4e214
|
| 05-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339200.
Sponsored by: The FreeBSD Foundation
|
| #
c0b5e991
|
| 14-Sep-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338595 through r338689, and resolve conflicts.
|
| #
5b21ba5c
|
| 14-Sep-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Improve LibUSB debugging by simultaneously allowing both function and transfer prints. Make sure the debug level comes from the correct USB context.
Found by: Ludovic Rousseau <ludovic.rousseau+fre
Improve LibUSB debugging by simultaneously allowing both function 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
show more ...
|