From owner-freebsd-hackers@FreeBSD.ORG Fri May 14 22:49:19 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 D975C16A4CF for ; Fri, 14 May 2004 22:49:19 -0700 (PDT) Received: from mister.mcgoonet.com (mcgoonet.com [199.245.97.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCAC743D45 for ; Fri, 14 May 2004 22:49:18 -0700 (PDT) (envelope-from mark@node.to) Received: from [10.10.10.251] (dsl027-160-048.atl1.dsl.speakeasy.net [216.27.160.48]) by mister.mcgoonet.com (8.12.10/8.12.9) with ESMTP id i4F5n5JB021912 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sat, 15 May 2004 05:49:06 GMT (envelope-from mark@node.to) In-Reply-To: <20040514153451.GL70900@cicely12.cicely.de> References: <20040514034223.U6244@mister.mcgoonet.com> <20040514153451.GL70900@cicely12.cicely.de> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8A5979F6-A633-11D8-927D-000D93C0E29E@node.to> Content-Transfer-Encoding: 7bit From: mark Date: Sat, 15 May 2004 01:48:50 -0400 To: ticso@cicely.de X-Mailer: Apple Mail (2.613) 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 List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 05:49:20 -0000 On May 14, 2004, at 11:34 AM, Bernd Walter wrote: > 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. > Genius. That fixes the problem. Now all probes occur after ehci load. Maybe it would be useful for this to be a device.hints configurable setting? Thanks for help, mark > -- > B.Walter BWCT http://www.bwct.de > bernd@bwct.de info@bwct.de > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" >