<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libusb, branch releng/11.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-03-13T09:17:51Z</updated>
<entry>
<title>MFC r358841:</title>
<updated>2020-03-13T09:17:51Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-03-13T09:17:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dfdfaa56ebc7b8c895b214619c268b2e009e77de'/>
<id>urn:sha1:dfdfaa56ebc7b8c895b214619c268b2e009e77de</id>
<content type='text'>
Fix for building libusb under Linux.

Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r357298:</title>
<updated>2020-02-03T11:05:14Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-02-03T11:05:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=24fc9c40a40fcde8faeea7d753e11df59cfa636d'/>
<id>urn:sha1:24fc9c40a40fcde8faeea7d753e11df59cfa636d</id>
<content type='text'>
Add missing mutex unlock in failure case.

Differential Revision:	https://reviews.freebsd.org/D23430
Submitted by:	cem
Reported by:	Coverity
Coverity CID:	1368773
Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r356136:</title>
<updated>2020-01-06T09:21:15Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2020-01-06T09:21:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f161b3c320686fd4997e87870f7aac195194ef91'/>
<id>urn:sha1:f161b3c320686fd4997e87870f7aac195194ef91</id>
<content type='text'>
Implement new libusb v2.0 API function, libusb20_dev_get_stats().

This function is useful when debugging USB device issues.

Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r353009: libusb: LIBUSB_DEBUG env var override of libusb_set_debug</title>
<updated>2019-10-06T03:59:05Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-10-06T03:59:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=976cbdcb58c642ec09bb1ca4b1c7595bf12d5265'/>
<id>urn:sha1:976cbdcb58c642ec09bb1ca4b1c7595bf12d5265</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>MFC r349409 and r349410:</title>
<updated>2019-07-03T18:25:05Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2019-07-03T18:25:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32fceb5f18f90b9fb3f08b09e59b1aaca80d339c'/>
<id>urn:sha1:32fceb5f18f90b9fb3f08b09e59b1aaca80d339c</id>
<content type='text'>
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.

Sponsored by:	Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r348797:</title>
<updated>2019-06-11T08:50:26Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2019-06-11T08:50:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da292a89e1bed1e969c5d2177430583cb14d8ae4'/>
<id>urn:sha1:da292a89e1bed1e969c5d2177430583cb14d8ae4</id>
<content type='text'>
Fix for reading the configuration descriptor in libusb. Catch invalid
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
Approved by:	re (kib)
</content>
</entry>
<entry>
<title>MFC r344795:</title>
<updated>2019-03-26T13:46:00Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2019-03-26T13:46:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea8c4f2dcac1adcc011526012fb4c7a27e377864'/>
<id>urn:sha1:ea8c4f2dcac1adcc011526012fb4c7a27e377864</id>
<content type='text'>
Fix typos in libusb.

Found by:		Denis Ahrens &lt;denis@h3q.com&gt;
Sponsored by:		Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r338993:</title>
<updated>2018-10-05T07:49:01Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2018-10-05T07:49:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a200092821be1322ef2f5e838241b17ff01021c'/>
<id>urn:sha1:6a200092821be1322ef2f5e838241b17ff01021c</id>
<content type='text'>
When multiple threads are involved receiving completion events in LibUSB
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 &lt;ludovic.rousseau+freebsd@gmail.com&gt;
PR:			231742
Sponsored by:		Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r338679:</title>
<updated>2018-09-19T08:11:44Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2018-09-19T08:11:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=47bf94412d9f51568278fcc77d210fec97e51fec'/>
<id>urn:sha1:47bf94412d9f51568278fcc77d210fec97e51fec</id>
<content type='text'>
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 &lt;ludovic.rousseau+freebsd@gmail.com&gt;
PR:			231264
Sponsored by:		Mellanox Technologies
</content>
</entry>
<entry>
<title>MFC r338616:</title>
<updated>2018-09-19T07:56:19Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2018-09-19T07:56:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fc1589e9b18b377cc62e26b2e650d824f4e40e0'/>
<id>urn:sha1:6fc1589e9b18b377cc62e26b2e650d824f4e40e0</id>
<content type='text'>
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 &lt;ludovic.rousseau+freebsd@gmail.com&gt;
PR:			231076
Sponsored by:		Mellanox Technologies
</content>
</entry>
</feed>
