From owner-freebsd-usb@FreeBSD.ORG Sat Nov 17 11:31:23 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E13716A418 for ; Sat, 17 Nov 2007 11:31:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 49B0213C45B for ; Sat, 17 Nov 2007 11:31:21 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 692046564; Sat, 17 Nov 2007 12:31:15 +0100 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Sat, 17 Nov 2007 12:31:45 +0100 User-Agent: KMail/1.9.7 References: <200711170938.28339.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711171231.46307.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: OpenUSB for FreeBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2007 11:31:23 -0000 On Saturday 17 November 2007, Xiaofan Chen wrote: > On Nov 17, 2007 4:38 PM, Hans Petter Selasky wrote: > > > Could you be a bit more specific? I know there are some missing calls > > > in FreeBSD. And I have problems with libusb interrupt write with the > > > default kernel (hangs). It is documented here. > > > http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.htm > > >l But I am not so sure if it is a libusb problem or the kernel USB > > > driver problem. > > > > The problem about clear stall on the interrupt endpoint is a pure device > > problem. Your USB device must re-queue any lost interrupt packets after > > clear stall! > > Sorry but that problem does not occur using the HPS stack but the stock > FreeBSD 7 Current kernel (actually in FreeBSD 6.1 and 6.2 as well > last time I tried it). Under HPS stack, it works. > > And I remember that Warner said that the Current kernel does not clear > stall. Quote from > http://lists.freebsd.org/pipermail/freebsd-usb/2007-July/003751.html Warner > Losh wrote: > "Remind me when is this clear endpoint stall sent? In 7.x we don't > send one on pipe open unless the device is quirked to require one. On > RELENG_6, at least as of today, we never send one on the open." > > Xiaofan Ok, but is that with or without that patch I sent you for Ugen ? --HPS