From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 21:37:37 2004 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 545E416A4CE for ; Fri, 3 Dec 2004 21:37:37 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AFFA43D55 for ; Fri, 3 Dec 2004 21:37:37 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id BEB967A44B; Fri, 3 Dec 2004 13:37:36 -0800 (PST) Message-ID: <41B0DCA0.7060508@elischer.org> Date: Fri, 03 Dec 2004 13:37:36 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: "M. Warner Losh" References: <41AE5B3C.8010003@elischer.org> <20041201.204502.51859780.imp@bsdimp.com> <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> In-Reply-To: <20041203.133422.67680751.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 21:37:37 -0000 M. Warner Losh wrote: >In message: <41B0C118.8070001@elischer.org> > Julian Elischer writes: >: I didn't say stack.. I said libusb (excepty I spelled it usblib) > >OK. I got confused... > >: it recovers on several machines where FreeBSD looses communications with >: the target after an error. > >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of >pipes by the driver (which ugen does each time the pipe subdevice is >opened). ClearFeature(Stall) was unfortunately typed from memory >rather than looking at the standard (section 9.4.5). What were you >thinking about chaning in this area? > Well for start implementing the call in libusb so it matches linux :-) It's a stub in the freeBSD version. Then it is possible that on an endpoint after it has timed out, you sholdl do a "Get Status" on the endpoint to check if it is in halt state and if it is then clear it. ( see section 9.4.5 of the usb-2 spec) (page 254) believe it or not we are using a device that gets in this state pretty easily and **Doesn't respond to a USB reset** but for some reason it does respond to a ClearFeature(halt) on the endpoint. (I'd like to get my hands on the idiots that decided to make "reset" not work on that device. >Warner >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > >