From owner-freebsd-usb@FreeBSD.ORG Mon Jan 14 14:09:48 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6756229C; Mon, 14 Jan 2013 14:09:48 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx1.freebsd.org (Postfix) with ESMTP id E3720A60; Mon, 14 Jan 2013 14:09:47 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id r4so1456499qaq.15 for ; Mon, 14 Jan 2013 06:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=muQWHg6YM+nTSf/fvK7tmMYWOoR1rxFZIWXMwFXgU1M=; b=IOxCzjLp8NJz7xwUIMWr/IoQtVMUd82WZMr3tFGnlTdG2fX3csy/CSTmN+615TubXv XE7JFktejox8+TTTEsBzEUpsvoEZ+qq+kjtjz3YE6ubwEzYNXq8vG8IorkZp/rPcy8cB 1B0+OeFM2VsB6EWbdVoYn8qS6RqjWjQeb9sO2mfKR1ocbOomoWe6cvORr3490tqTG5FI 1Nc45xDlu28Kg1AhKLrP5TgTPvx0SNzBOdCnXFRnLAhJvGuexaO05gVv/NRt3G01SPM2 nWQm7cbspbSRu0QF3ok+85pm66ylSqoWd3faA8wwGQjliWcLW18HKUfJi6aC8RDZmJjK 1kZg== MIME-Version: 1.0 Received: by 10.49.59.48 with SMTP id w16mr82888444qeq.38.1358172253943; Mon, 14 Jan 2013 06:04:13 -0800 (PST) Received: by 10.49.87.197 with HTTP; Mon, 14 Jan 2013 06:04:13 -0800 (PST) In-Reply-To: References: <201211162247.qAGMlTm2057387@red.freebsd.org> <201212210838.32260.hselasky@c2i.net> <201212231040.25892.hselasky@c2i.net> Date: Mon, 14 Jan 2013 22:04:13 +0800 Message-ID: Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD From: Xiaofan Chen To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: "Wojciech A. Koszek" , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2013 14:09:48 -0000 On Mon, Dec 24, 2012 at 9:17 AM, Xiaofan Chen wrote: > On Sun, Dec 23, 2012 at 5:40 PM, Hans Petter Selasky wrote: >> On Saturday 22 December 2012 11:17:15 Xiaofan Chen wrote: >>> On Fri, Dec 21, 2012 at 3:38 PM, Hans Petter Selasky >> 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