Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2019 16:25:58 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        "O'Connor, Daniel" <darius@dons.net.au>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: USB stack getting confused
Message-ID:  <6dd8fe5f-6835-d98a-7592-0293406ccd63@selasky.org>
In-Reply-To: <3B29D870-41F9-46AF-B9F3-03106DEC417D@dons.net.au>
References:  <E0371188-FD0A-47E1-8378-40239F5C6622@dons.net.au> <f3e6e30b-8b62-546b-2b51-e841f2e645bd@selasky.org> <3B29D870-41F9-46AF-B9F3-03106DEC417D@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/9/19 11:29 AM, O'Connor, Daniel wrote:
> If I hold the user space process in gdb 'forever' (eg over night) usbconfig doesn't see the device, but the moment I quit the user space process it can be seen again.

Check the output from "procstat -ak". Likely your application is not 
closing the USB handle during device detach and so a deadlock happens.

Also see:
libusb20_dev_check_connected() . Poll this function regularly to figure 
out if disconnect is needed.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6dd8fe5f-6835-d98a-7592-0293406ccd63>