public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "Ilia A. Petrov" <masmas@mcst.ru>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] PROBLEM: when booting from USB-HDD device kernel 2.4.21 is trying to mount root file system too early before usb device is found on the usb-bus
Date: Mon, 07 Jul 2003 09:09:31 -0700	[thread overview]
Message-ID: <3F099B3B.9050804@pacbell.net> (raw)
In-Reply-To: <3F093B60.1010001@mcst.ru>

Ilia A. Petrov wrote:
> David Brownell wrote:
>> Ilia A. Petrov wrote:
>>
>>> When kernel is mounting root file system it is doing it too fast so 
>>> usb-support have not ime to scan bus for mass-storage devices and 
>>> connect them.
>>> ...
>>> or, imho better way, - when completing init of usb bus, first scans 
>>> it and connect all devices and only after all devices were connected 
>>> returns to main kernel code.
>>
>>
>>
>> That might not entirely solve the problem, since the relevant device
>> could drop off the bus temporarily, but it seems like it'd be a step
>> forward.  How would you make root hub ("bus") initialization do that?
> 
> 
> i'm not familiar with linux usb implementation so may be it's wrong:
> after sending global reset over the bus you can manually check (not 
> trough the hub driver) root port connection status and call enumeration 
> if needed.

I had in mind an explanation that works with "patch -p1" ... :)

There's already a call to register a root hub.  It'd be dangerous
to have some other thread try to share responsibilities with khubd,
so that call would likely need to be modified.  (Although there's
been a bit of discussion about actually getting rid of that specific
single-point-of-failure, since not all hub operations need to be
serialized.)

- Dave





      reply	other threads:[~2003-07-07 15:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-04 12:03 PROBLEM: when booting from USB-HDD device kernel 2.4.21 is trying to mount root file system too early before usb device is found on the usb-bus Ilia A. Petrov
2003-07-04 16:01 ` [linux-usb-devel] " David Brownell
2003-07-07  9:20   ` Ilia A. Petrov
2003-07-07 16:09     ` David Brownell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F099B3B.9050804@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=masmas@mcst.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox