Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2020 20:20:09 +0200
From:      Jan Behrens <jbe-mlist@magnetkern.de>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB reset fails when using a LimeSDR Mini on FreeBSD
Message-ID:  <20200625202009.aca700334d5b1bbaa3422b3f@magnetkern.de>
In-Reply-To: <d9f43350-fbdb-7280-cc67-831accc08e87@selasky.org>
References:  <20200625121052.e9f7e7cbeb68fad264ec80a9@magnetkern.de> <20200625195943.a6b32addb3c66c3294ed78ef@magnetkern.de> <d9f43350-fbdb-7280-cc67-831accc08e87@selasky.org>

index | next in thread | previous in thread | raw e-mail

On Thu, 25 Jun 2020 20:16:14 +0200
Hans Petter Selasky <hps@selasky.org> wrote:

> Hi,
> 
> 
> On 2020-06-25 19:59, Jan Behrens wrote:
> > In both cases there is an issue when calling the libusb_reset_device()
> > function.
> 
> Unless the device requires it, libusb_reset_device(), will only 
> re-enumerate the device. Beware that this only is allowed if you are 
> running the application as root. Else libusb_reset_device() will be a 
> no-operation.

But in my case, the call causes the program to abort (due to returning
an error status, I assume). This is the context where the SoapySDR
driver calls libusb_reset_device():

https://github.com/myriadrf/LimeSuite/blob/1c1c202f9a6ae4bb34068b6f3f576f7f8e74c7f1/src/ConnectionFTDI/ConnectionFT601.cpp#L212

> 
> --HPS
> 

Regards,
Jan


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200625202009.aca700334d5b1bbaa3422b3f>