Re: Help: undesired 10 seconds delay in creating USB devices

From: Greg KH
Date: Thu Oct 23 2008 - 11:43:06 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/