From owner-freebsd-usb@FreeBSD.ORG Thu Jun 14 23:48:37 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90E2016A41F for ; Thu, 14 Jun 2007 23:48:37 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 844CE13C447 for ; Thu, 14 Jun 2007 23:48:37 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id A086D1A4D84; Thu, 14 Jun 2007 16:16:45 -0700 (PDT) Date: Thu, 14 Jun 2007 16:16:45 -0700 From: Alfred Perlstein To: Hans Petter Selasky Message-ID: <20070614231645.GC96936@elvis.mu.org> References: <200706141156.18290.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706141156.18290.hselasky@c2i.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-usb@freebsd.org Subject: Re: HPS USB stack API change 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: Thu, 14 Jun 2007 23:48:37 -0000 * Hans Petter Selasky [070614 02:56] wrote: > Hi all! > > I'm planning to add another argument to "usbd_start_hardware()", which is a > delay value that gives the delay in microseconds or maybe milliseconds before > the transfer is actually queued. This can be used to reduce the polling rate > on BULK-IN transfers among other things, to reduce the overall power usage, > and to safely create infinite polling loops without fearing BUS overusage in > case of failure conditions. > > For example: > > usbd_start_hardware(xfer, 200000); //200 ms delay > > A delay value of zero indicates no delay. > Sounds like a good idea. > I plan to implement this re-using the timeout callout. > > Any comments ? Can't comment as I'm not that familiar with the existing underlying code. -- - Alfred Perlstein