linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] hotplug usb.rc changes
Date: Wed, 11 Jun 2003 00:19:24 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-105529101404816@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-105500525713006@msgid-missing>

Olaf Hering wrote:
>  On Sat, Jun 07, Olaf Hering wrote:
> 
> 
>>Index: etc/hotplug/usb.rc
>>@@ -154,32 +134,16 @@
>>     # FIXME: some of this should be driven by PCI hotplugging, and have
>>     # the blacklist control which uhci driver gets used (before 2.5).
> 
> 
> This comment looks like a chicken/egg problem.
> if you load the usb hostcontroller drivers via pci.rc then we will lose
> the real hotplug events because usbfs is not mounted.

Unless something guarantees the "mount /proc/bus/usb" step gets
done after "usbcore" loads.  There are modules.conf and modprobe.conf
ways to do that ... or doing it in "usb.rc" while bringing USB up,
as is done here, not pretty but reasonably robust.


> We can still syntesize stuff, but thats probably not what hotplugging
> means?

If "usbcore" is live, then real hotplugging events will happen.

But they may not be all that useful ... if a USB keyboard needs
to be available early, that means hotplug events happen early.
Even before filesystems are mounted or networks are up, so
the more interesting hotplug agents can't do their work.

If nothing else, a "coldplug" synthesis phase later on will
make sure that the agents will be called when most system
resources are available.


> Has anyone looked into this?

Not lately.


- Dave




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      parent reply	other threads:[~2003-06-11  0:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-07 16:56 [PATCH] hotplug usb.rc changes Olaf Hering
2003-06-07 17:51 ` Olaf Hering
2003-06-07 20:28 ` Wout Mertens
2003-06-08  5:42 ` Olaf Hering
2003-06-08 19:11 ` David Brownell
2003-06-10 21:30 ` Olaf Hering
2003-06-11  0:19 ` 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=marc-linux-hotplug-105529101404816@msgid-missing \
    --to=david-b@pacbell.net \
    --cc=linux-hotplug@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).