public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: "Gu, Mingkun" <Mingkun.Gu@GTECH.COM>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Help: undesired 10 seconds delay in creating USB devices
Date: Thu, 23 Oct 2008 08:22:16 -0700	[thread overview]
Message-ID: <20081023152216.GA3911@kroah.com> (raw)
In-Reply-To: <32C88E5279F5DD46B7237443CD61E67901E455B9@cspmail02.gtk.gtech.com>

On Thu, Oct 23, 2008 at 11:22:08AM -0300, Gu, Mingkun wrote:
> Hi Gentlemen,
> 
> I upgraded my kernel version from 2.6.13.5 to 2.6.21.7. I noted a 10
> seconds delay in creating the device node under /dev for a hotplug USB
> device. The details are as follows:
> 
> 1) if the device driver is not loaded, the device driver will be loaded
> and a device name under /dev will be created immediately when I plug in
> my USB device (a finger button board);
> 
> 2) after the device driver has been loaded and unplugged the USB device
> from the system, a 10 seconds delay in creating a device name under /dev
> will be observed when I plug the device back into the system.

What are you using to test that a 10 second delay is present?

If you run 'udevadm monitor', does it show a 10 second delay?

Remember, for a usb-storage device, the kernel will wait at least 5
seconds before creating the block device for it as part of the "settle
the device down" delay.  If you don't like it, you can change that
parameter to be shorter, but you do so at your own risk.

thanks,

greg k-h

       reply	other threads:[~2008-10-23 15:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <32C88E5279F5DD46B7237443CD61E67901E455B9@cspmail02.gtk.gtech.com>
2008-10-23 15:22 ` Greg KH [this message]
     [not found]   ` <32C88E5279F5DD46B7237443CD61E67901E455BA@cspmail02.gtk.gtech.com>
2008-10-23 16:13     ` Help: undesired 10 seconds delay in creating USB devices Greg KH
2008-10-23 19:22       ` Kay Sievers
     [not found]       ` <32C88E5279F5DD46B7237443CD61E67901E455BB@cspmail02.gtk.gtech.com>
2008-10-23 19:36         ` Greg KH
2008-10-23 19:49           ` Kay Sievers
     [not found]             ` <32C88E5279F5DD46B7237443CD61E67901E455BC@cspmail02.gtk.gtech.com>
2008-10-23 20:30               ` Kay Sievers

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=20081023152216.GA3911@kroah.com \
    --to=greg@kroah.com \
    --cc=Mingkun.Gu@GTECH.COM \
    --cc=linux-kernel@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