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

next in thread | previous in thread | raw e-mail | index | archive | help
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.

--HPS



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