From owner-cvs-all@FreeBSD.ORG Fri Mar 25 20:25:35 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5813916A4CE; Fri, 25 Mar 2005 20:25:35 +0000 (GMT) Received: from www.portaone.com (support.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CCDC43D2D; Fri, 25 Mar 2005 20:25:34 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.0.254] ([192.168.2.2]) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j2PKPVlJ037415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Mar 2005 21:25:32 +0100 (CET) (envelope-from sobomax@portaone.com) Message-ID: <424473BB.4010607@portaone.com> Date: Fri, 25 Mar 2005 22:25:31 +0200 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ian Dowse References: <200503171941.j2HJfKje003685@repoman.freebsd.org> In-Reply-To: <200503171941.j2HJfKje003685@repoman.freebsd.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on www.portaone.com X-Virus-Status: Clean cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/usb usb.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 20:25:35 -0000 This is still suboptimal, since even after this change when ehci is enabled some (if not most) USB devices are detected after system goes into milti-user mode. Obviously, this makes it impossible to mount root fs off the USB HDD/FDD/CD. The simplest way to solve this problem is to add some sufficiently long and configurable delay before mounting root fs (similar to one used by the SCSI) when ehci is enabled to let those devices to be detected and attached. -Maxim Ian Dowse wrote: > iedowse 2005-03-17 19:41:20 UTC > > FreeBSD src repository > > Modified files: > sys/dev/usb usb.c > Log: > Defer boot-time exploration of USB busses until all devices in the > system have been attached, but no later. This ensures that we do > not explore ohci or uhci busses before the companion echi controller > has been initialised, so it should fix the problem of multi-speed > USB devices getting attached as USB 1 devices first and then > re-attached as USB 2. > > Some further changes are needed on architectures that do not currently > allow hooks to be inserted before configure_final() - alpha, ia64, > powerpc and sparc64. On these architectures the exploration will > now be delayed until the usb kthread runs. > > Revision Changes Path > 1.104 +30 -1 src/sys/dev/usb/usb.c > > >