Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757679AbZGHPG0 (ORCPT ); Wed, 8 Jul 2009 11:06:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756324AbZGHPGT (ORCPT ); Wed, 8 Jul 2009 11:06:19 -0400 Received: from mx2.redhat.com ([66.187.237.31]:48288 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755760AbZGHPGS (ORCPT ); Wed, 8 Jul 2009 11:06:18 -0400 Message-ID: <4A54B5C2.9000908@redhat.com> Date: Wed, 08 Jul 2009 11:05:38 -0400 From: Peter Jones User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Greg KH CC: Dave Airlie , Jeff Chua , Linux Kernel , Linus Torvalds , Scott James Remnant , Kay Sievers , Dave Jones Subject: Re: can we move USB_DEVICEFS to non-embedded? References: <20090623144221.GA29593@suse.de> <20090623153928.GA32604@suse.de> <21d7e9970907080354h6949b27va40fb830f612287@mail.gmail.com> <4A54A4A6.2060100@redhat.com> <4A54A538.3080407@redhat.com> <20090708140419.GA20418@suse.de> <4A54A938.5030807@redhat.com> <20090708145625.GA20690@suse.de> In-Reply-To: <20090708145625.GA20690@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1944 Lines: 52 Greg KH wrote: > On Wed, Jul 08, 2009 at 10:12:08AM -0400, Peter Jones wrote: >> Greg KH wrote: >>> On Wed, Jul 08, 2009 at 09:55:04AM -0400, Peter Jones wrote: >>>> On 07/08/2009 09:52 AM, Peter Jones wrote: >>>>> On 07/08/2009 06:54 AM, Dave Airlie wrote: >>>>> >>>>>> I'm not quite sure if something in the F11 initrd needs usbfs for >>>>>> something (cc'ed Peter) >>>>> Not a thing. >>>> Actually, I take it back. We do mount usbfs, and we examine >>>> /proc/bus/usb/devices as a heuristic to try and determine if >>>> all the devices have been enumerated. >>> How can you ever know if all devices are enumerated as you don't know >>> how many devices will be showing up? >> You don't, that's why I said it's a heuristic. But basically, we have a >> timeout, and if the device list doesn't change in that amount of time, we >> call it done. >> >> It's not the best technique ever, but it does work. > > Works for what? Why would you want to delay your boot process like > this? Because otherwise when we actually get to mounting the root filesystem, the device *isn't yet present*. >>>> So that could be related to what you're seeing. >>> That file is now available in /sys/kernel/debug/usb/devices if you >>> really need it. >> Oh, okay. I can change it to use that then. >> >>> But I would think that you do not. >> Well, we pretty much do until we switch to dracut. > > What is dracut and why would it change this? It's the replacement for mkinitrd, and it's using hotplug events for this stuff instead. > As no other distro does this kind of waiting, I'm a bit confused as to > the need for it. Good to know you pay attention to what's going on in the Linux world. -- Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/