From: Fumitoshi UKAI <ukai@debian.or.jp>
To: linux-hotplug@vger.kernel.org
Subject: Re: usb cold plugging
Date: Sat, 27 Mar 2004 07:56:25 +0000 [thread overview]
Message-ID: <87r7veu3iu.wl@ukai.org> (raw)
In-Reply-To: <87ekrv71kf.wl@ukai.org>
At Fri, 26 Mar 2004 15:15:31 -0800,
Greg KH wrote:
>
> On Mon, Mar 15, 2004 at 02:58:40AM +0900, Fumitoshi UKAI wrote:
> > Hi,
> >
> > It seems there are some problems in usb coldplugging.
> >
> > 1) after usb core modules loaded, it needs some time to propagate
> > information to /proc or /sys. So, I think we need some wait before
> > calling usb_boot_events.
> > But I'm not sure it is sufficient to sleep 1 sec. are there any
> > better way to wait some files in /proc or /sys ?
>
> Sure, you can wait until the specific bus files show up under
> /sys/bus/BUS_TYPE
>
> > 2) if /sys/bus/usb/devices found, it updates DEVPATH and PRODUCT, but
> > it never call /etc/hotplug/usb.agent, so no coldplugging happens.
>
> That's not good.
>
> > Is this patch ok to commit?
>
> Looks good to me for now. The sleep thing can't hurt :)
>
> Feel free to commit it.
Ok, commited.
thanks,
Fumitoshi UKAI
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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
prev parent reply other threads:[~2004-03-27 7:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-14 17:58 usb cold plugging Fumitoshi UKAI
2004-03-26 23:15 ` Greg KH
2004-03-27 7:56 ` Fumitoshi UKAI [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=87r7veu3iu.wl@ukai.org \
--to=ukai@debian.or.jp \
--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).