Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2013 22:04:13 +0800
From:      Xiaofan Chen <xiaofanc@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        "Wojciech A. Koszek" <wkoszek@freebsd.org>, freebsd-usb@freebsd.org
Subject:   Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD
Message-ID:  <CAGjSPUAFH9u-1HWO0tn4zUTiFEALmy0Me5WuXkV3tR5eD6%2BpWg@mail.gmail.com>
In-Reply-To: <CAGjSPUA3WpKiifGA_Cu1aeV%2BnEPFxQdXpo69T5T73SWxnVXiPw@mail.gmail.com>
References:  <201211162247.qAGMlTm2057387@red.freebsd.org> <201212210838.32260.hselasky@c2i.net> <CAGjSPUCuDUTMTn427v=GWdLqm3LcSM7OR1nFpVoyXgba%2BtX3dQ@mail.gmail.com> <201212231040.25892.hselasky@c2i.net> <CAGjSPUA3WpKiifGA_Cu1aeV%2BnEPFxQdXpo69T5T73SWxnVXiPw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 24, 2012 at 9:17 AM, Xiaofan Chen <xiaofanc@gmail.com> wrote:
> On Sun, Dec 23, 2012 at 5:40 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
>> On Saturday 22 December 2012 11:17:15 Xiaofan Chen wrote:
>>> On Fri, Dec 21, 2012 at 3:38 PM, Hans Petter Selasky <hselasky@c2i.net>
>> wrote:
>>> > If you look in the old libusb-0.1 code you'll see something different I
>>> > think. Could you check that?
>>>
>>> Not much differences in reality. I believe it is a document bug for the
>>> libusb-0.1.
>>>
>>> Both old libusb-0.1 code and libusb-1.0 use the same IOCTL under Linux
>>> and the behavior should be similar.
>>>
>>> Please refer to the following code listing and take note even though
>>> the name of the IOCTL is different but they are the same if you
>>> look at the defines.
>>
>> Can you create a thread for this at the libusb lists?
>
> Okay.

There is no reply in that thread. But in another thread, Alan
Stern confirms that Linux libusb reset will not cause
re-enumeation.

Ref: http://libusb.6.n5.nabble.com/USB-device-works-in-linux-but-not-in-OSX-tp5711092p5711132.html

The detailed Linux behavior is as following as explained by
Alan Stern.
http://libusb.6.n5.nabble.com/USB-device-works-in-linux-but-not-in-OSX-tp5711092p5711148.html

It is not that pretty in this case since different OS may behave
differently. Summary here:
http://libusb.6.n5.nabble.com/USB-device-works-in-linux-but-not-in-OSX-tp5711092p5711139.html


-- 
Xiaofan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGjSPUAFH9u-1HWO0tn4zUTiFEALmy0Me5WuXkV3tR5eD6%2BpWg>