Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 06:40:25 +0000
From:      "Wojciech A. Koszek" <wkoszek@freebsd.org>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD
Message-ID:  <20121219064025.GB86339@FreeBSD.org>
In-Reply-To: <201211171319.34781.hselasky@c2i.net>
References:  <201211162247.qAGMlTm2057387@red.freebsd.org> <201211171319.34781.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <JSB283 Relay Module J-Works,Inc> 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/



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