usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD

Hans Petter Selasky hselasky at c2i.net
Sat Nov 17 12:18:03 UTC 2012


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 at 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.

--HPS


More information about the freebsd-usb mailing list