From owner-freebsd-usb@FreeBSD.ORG Sun Jan 23 10:38:46 2005 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 DC13316A4CE for ; Sun, 23 Jan 2005 10:38:46 +0000 (GMT) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B44843D1F for ; Sun, 23 Jan 2005 10:38:46 +0000 (GMT) (envelope-from irchat@free.fr) Received: from imp3-q.free.fr (imp3-q.free.fr [212.27.42.3]) by postfix4-1.free.fr (Postfix) with ESMTP id BD022271384; Sun, 23 Jan 2005 11:38:45 +0100 (CET) Received: by imp3-q.free.fr (Postfix, from userid 33) id 6E3FD29D7A; Sun, 23 Jan 2005 11:38:45 +0100 (MET) Received: from AAmiens-152-1-50-118.w83-198.abo.wanadoo.fr (AAmiens-152-1-50-118.w83-198.abo.wanadoo.fr [83.198.40.118]) by imp3-q.free.fr (IMP) with HTTP for ; Sun, 23 Jan 2005 11:38:45 +0100 Message-ID: <1106476725.41f37eb55726f@imp3-q.free.fr> Date: Sun, 23 Jan 2005 11:38:45 +0100 From: irchat@free.fr To: Ian Dowse , freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 83.198.40.118 Subject: Re: Prism54 USB Wireless Adapters 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: Sun, 23 Jan 2005 10:38:47 -0000 > The only thing unusual I could see about the Prism54 driver > is that it does a lot of opening and closing of pipes Yeah, Prism54 devices are actually a pain :( > so maybe something like that is tickling EHCI bugs. > >Testing my driver with or without USBD_NO_COPY and the EHCI makes the > > interrupt callback never called. With UHCI and without USBD_NO_COPY, my > > code fails when the xfers using the buffers that don't support DMA are > > submitted. > > Are you saying that something doesn't work with UHCI too? If you > avoid the USBD_NO_COPY flag you shouldn't have to worry about DMA > buffers, since the USB code will handle them itself. Or do you mean > something different? No, I meant that UHCI worked fine as it reports the error if I try to use non-DMA-capable buffers with DMA, unlike EHCI which doesn't report anything wrong and behaves improperly then. I have worked a lot on the driver lately, see http://yoshiyo.ath.cx/seb/prism54_freebsd.html The DMA problems are fixed, I now use usbd_alloc_buffer(). Sebastien