From owner-freebsd-hackers@FreeBSD.ORG Fri May 14 08:35:30 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 6BD2C16A4CE for ; Fri, 14 May 2004 08:35:30 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2149443D45 for ; Fri, 14 May 2004 08:35:29 -0700 (PDT) (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) i4EFZJDv095987 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 14 May 2004 17:35:22 +0200 (CEST) (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 i4EFYsUi089603 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 May 2004 17:34:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i4EFYrF2025152; Fri, 14 May 2004 17:34:53 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i4EFYq5j025151; Fri, 14 May 2004 17:34:52 +0200 (CEST) (envelope-from ticso) Date: Fri, 14 May 2004 17:34:52 +0200 From: Bernd Walter To: mark Message-ID: <20040514153451.GL70900@cicely12.cicely.de> References: <20040514034223.U6244@mister.mcgoonet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040514034223.U6244@mister.mcgoonet.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i 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: freebsd-hackers@freebsd.org Subject: Re: usb probs ehci works vs uhci hangs with Linksys usb200M ( axe0 ) 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: Fri, 14 May 2004 15:35:30 -0000 On Fri, May 14, 2004 at 03:59:27AM +0000, mark wrote: > > > > I'm looking for a work around to this usb ethernet problem. > > > With FreeBSD-5.2.1-p5, "device ehci" added to the default GENERIC kernel, > the axe device works fine in USB 2.0 mode, when plugged in after boot > (AFTER ehci driver is loaded)B. > > > However, without ehci, uhci tries to attach the device and hangs with > "read PHY failed". If booted with device plugged, boot stops. If device is > plugged in after boot, the axe module hangs, looping forever on the read > error (you can unplug the device but usb never deregisters it) but the > system remains useable. > > > If the system has ehci enabled, and is booted with the device plugged in, > it hangs when uhci module is loaded because it begins immediate probe > before ehci is loaded. Thus it is impossible to boot the system in any > config with the device plugged in at boot. > > > Is there any way to disable USB autoprobing, to send a signal or something > to tell it when to start probing. Alternatively, is there a way to prevent > USB probing until all USB controllers are loaded (specifically, the ehci > module)? You can set the #if 1 to 0 in usb.c to delay probing as a workaround. Unfortunately this may cause troubles if you have USB devices that are needed sonner. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de