From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 7 00:07:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AEF216A4CE for ; Wed, 7 Jan 2004 00:07:48 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9DB643D2F for ; Wed, 7 Jan 2004 00:07:45 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i0787ZN1097658 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 7 Jan 2004 09:07:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i0787R4H002519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Jan 2004 09:07:27 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id i0787QBE046697; Wed, 7 Jan 2004 09:07:26 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id i0787MiN046696; Wed, 7 Jan 2004 09:07:22 +0100 (CET) (envelope-from ticso) Date: Wed, 7 Jan 2004 09:07:21 +0100 From: Bernd Walter To: "Daniel O'Connor" Message-ID: <20040107080720.GH45569@cicely12.cicely.de> References: <3FFA04A8.30601@evilrealms.net> <200401071644.47090.doconnor@gsoft.com.au> <20040107063824.GF45569@cicely12.cicely.de> <200401071734.05764.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401071734.05764.doconnor@gsoft.com.au> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: Bernd Walter cc: freebsd-hackers@freebsd.org cc: ticso@cicely.de cc: Jay Cornwall Subject: Re: USB stack / configuration 0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 08:07:48 -0000 On Wed, Jan 07, 2004 at 05:34:05PM +1030, Daniel O'Connor wrote: > On Wednesday 07 January 2004 17:08, Bernd Walter wrote: > > > I don't think it IS a dumb device, there is a USB spec called DFU which > > > covers it and the hosts job is to do the reenumeration. > > > > Sparing a transistor to offload the work to the host were its also > > way more complex to do is dump. > > If this is part of the Spec, then the spec is dump too. > > Err yes, this IS USB we're talking about here :) Reead your spec - it's not part of USB itself. umass, ulpt, etc are extensions. It is even that a mass storage device doesn't have to honour umass specification to get the USB compliance logo :( > > usbd_reset_port should do from the USB point of view, but this doesn't > > trigger Free BSD to do a reconfiguration of the device, which is > > required after reset. > > > > Maybe the following will do instead: > > usbd_clear_port_feature(dev, port, UHF_PORT_ENABLE) > > delay(USB_PORT_POWERUP_DELAY); > > usbd_set_port_feature(dev, port, UHF_PORT_ENABLE) > > dev and port is that from the hub. > > Except that would remove power to the port I think.. AFAIK power is independend, but I'm not 100% shure. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de