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     r...@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
wkos...@freebsd.czest.pl
http://FreeBSD.czest.pl/~wkoszek/
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to