From owner-freebsd-usb@freebsd.org Thu Jun 25 17:59:46 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 27B7D340A26 for ; Thu, 25 Jun 2020 17:59:46 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from sapphire.magnetkern.de (sapphire.magnetkern.de [185.228.139.199]) by mx1.freebsd.org (Postfix) with ESMTP id 49t7810FfNz4NTW for ; Thu, 25 Jun 2020 17:59:44 +0000 (UTC) (envelope-from jbe-mlist@magnetkern.de) Received: from titanium (p5dd45c70.dip0.t-ipconnect.de [93.212.92.112]) by sapphire.magnetkern.de (Postfix) with ESMTPSA id 70B9F1319 for ; Thu, 25 Jun 2020 17:59:43 +0000 (UTC) Date: Thu, 25 Jun 2020 19:59:43 +0200 From: Jan Behrens To: freebsd-usb@freebsd.org Subject: Re: USB reset fails when using a LimeSDR Mini on FreeBSD Message-Id: <20200625195943.a6b32addb3c66c3294ed78ef@magnetkern.de> In-Reply-To: <20200625121052.e9f7e7cbeb68fad264ec80a9@magnetkern.de> References: <20200625121052.e9f7e7cbeb68fad264ec80a9@magnetkern.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49t7810FfNz4NTW X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jbe-mlist@magnetkern.de designates 185.228.139.199 as permitted sender) smtp.mailfrom=jbe-mlist@magnetkern.de X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.42)[-0.415]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.67)[-0.674]; DMARC_NA(0.00)[magnetkern.de]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_SPAM_SHORT(0.09)[0.088]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197540, ipnet:185.228.136.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[93.212.92.112:received] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2020 17:59:46 -0000 On Thu, 25 Jun 2020 12:10:52 +0200 Jan Behrens wrote: > I'd like to use a software defined radio "LimeSDR Mini" on FreeBSD > utilizing the "SoapySDR library" with a driver from "Lime Suite", but I > encounter errors, supposedly in libusb. Maybe the same problem occured in MacOS's libusb. Compare the following posts: https://github.com/myriadrf/LimeSuite/issues/253 https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230/7 In both cases there is an issue when calling the libusb_reset_device() function. The problem on MacOS seems to have been fixed according to this post: https://github.com/myriadrf/LimeSuite/issues/253#issuecomment-480263517 Look at the following patch: https://github.com/libusb/libusb/commit/a0b5d27fa7f2bba11965e2b70533f925a5772808 The patch seems to be darwin-specific. Is the same bug affecting FreeBSD or is this a different issue? Can the problem be solved for FreeBSD as well? Kind Regards, Jan Behrens