[Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished"

2020-07-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237666 --- Comment #114 from Ihor Antonov --- Yes, I can reproduce the bug by unplugging my external monitor. Monitor is connected via USB-C cable. As soon as I unplug it I see this message in dmesg appearing roughly every second.

[Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished"

2020-07-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237666 Ihor Antonov changed: What|Removed |Added CC||ihor@antonovs.family --- Comment

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Tomasz CEDRO
Thank you guys for trust and hints, I will be able to get into this around August, sorry, I am a bit overworked at the moment, I have some backlog waiting for FreeBSD already :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Gary Jennejohn
On Fri, 3 Jul 2020 11:15:01 +0200 Hans Petter Selasky wrote: > Hi, > > On 2020-07-03 11:06, Tomasz CEDRO wrote: > > +1 for user enabled actions like usb reset and kernel driver detach:-) > > maybe based on a sysctl like usermount, i.e. usb_allow_user_device_reset > > and

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Tomasz CEDRO
pt., 3 lip 2020, 11:15 użytkownik Hans Petter Selasky napisał: > > Second would allow user for example to unload ucom driver that is > attached > > to a device which does not seem possible right now and causes problem > with > > i.e. pyOCD / some debug probes. > > Currently we use PRIV_DRIVER in

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Hans Petter Selasky
Hi, On 2020-07-03 11:06, Tomasz CEDRO wrote: +1 for user enabled actions like usb reset and kernel driver detach:-) maybe based on a sysctl like usermount, i.e. usb_allow_user_device_reset and usb_allow_user_kernel_driver_detach..? One would allow user to reset a usb device. This is sometimes

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Tomasz CEDRO
pt., 3 lip 2020, 10:10 użytkownik Hans Petter Selasky napisał: > > I see three possible approaches currently: > > > > 1. Allowing a USB reset if the user has access to /dev/ugenX.Y (might > > allow users to mess with kernel's operation on a device, unless the > > problem exists anyway,

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Hans Petter Selasky
Hi Jan, On 2020-07-03 09:51, Jan Behrens wrote: Yes, and we have one or two firmware loading utilities in base still using them. Except that /dev/usb/X.Y.0 (which is linked by /dev/ugenX.Y) controls access rights to the device through libusb, right? Yes, that is correct. Yes, but

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Jan Behrens
Hello Hans, Thanks for your responses so far, all your work on FreeBSD's USB support, and helping me to understand the nature of the problem. Also thanks to Tomek, of course. Your responses helped me a lot to track down the problem. I have a couple more questions, see below. On Thu, 2 Jul 2020