From owner-freebsd-usb@FreeBSD.ORG Wed Dec 19 07:00:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B8483FE for ; Wed, 19 Dec 2012 07:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 16FA48FC0A for ; Wed, 19 Dec 2012 07:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBJ700KP067674 for ; Wed, 19 Dec 2012 07:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBJ700J7067669; Wed, 19 Dec 2012 07:00:00 GMT (envelope-from gnats) Date: Wed, 19 Dec 2012 07:00:00 GMT Message-Id: <201212190700.qBJ700J7067669@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: "Wojciech A. Koszek" Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Wojciech A. Koszek" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2012 07:00:01 -0000 The following reply was made to PR usb/173666; it has been noted by GNATS. From: "Wojciech A. Koszek" To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD Date: Wed, 19 Dec 2012 06:40:25 +0000 On Sat, Nov 17, 2012 at 01:19:34PM +0100, Hans Petter Selasky wrote: > On Friday 16 November 2012 23:47:29 Wojciech A. Koszek wrote: > > >Number: 173666 > > >Category: usb > > >Synopsis: [USB, LIBUSB] usb_reset() behavior different between > > >GNU/Linux and FreeBSD Confidential: no > > >Severity: non-critical > > >Priority: low > > >Responsible: freebsd-usb > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: sw-bug > > >Submitter-Id: current-users > > >Arrival-Date: Fri Nov 16 22:50:00 UTC 2012 > > >Closed-Date: > > >Last-Modified: > > >Originator: Wojciech A. Koszek > > >Release: 9.0-RELEASE > > > > >Organization: > > FreeBSD > > > > >Environment: > > FreeBSD seu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC > > 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > > >Description: > > I have a driver written for libusb, which works fine under GNU/Linux and > > libusb. Device: > > > > gen0.2: at usbus0, cfg=0 md=HOST spd=LOW > > (1.5Mbps) pwr=ON > > > > (I used USB sniffer to uncover traffic based on what Windows was doing) > > > > Under Linux usb_reset()+usb_set_configuration() calls works fine. Under > > FreeBSD I have to disable calling usb_reset(), otherwise > > usb_set_configuration() fails with I/O error. > > > > According to: > > http://libusb.sourceforge.net/doc/function.usbreset.html > > What you describe is the expected behaviour. Hans, I agree. This bug case can be closed then. Useful feature of our API would be to fail on a handle, if usb_reset() was called on it. -- Wojciech A. Koszek wkoszek@FreeBSD.czest.pl http://FreeBSD.czest.pl/~wkoszek/