From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 11 Mar 2002 21:50:51 +0000 Subject: [PATCH] fix some hubs and hid devices at startup Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi, Since the latest USB patch went in that added a proper delay to the hub connection sequence, a lot of people have been reporting odd problems with some USB hubs, keyboards, and mice. I've seen this problem too. It is usually fixed by just replugging the device in, but not all of the time. The reason seems to be that usbmodules is getting called from the hotplug package at the same time the hub driver is talking to the device. Since we don't have control endpoint locking in the kernel USB code yet, this messes things up :) The patch below, from Olaf Hering, seems to fix the problem. Also just removing the usbmodules binary seems to fix it for other people, but that's not really a good fix. Let me know what you think about this. thanks, greg k-h Index: etc/hotplug/usb.agent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3DRCS file: /cvsroot/linux-hotplug/admin/etc/hotplug/= usb.agent,v retrieving revision 1.19 diff -a -u -r1.19 usb.agent --- etc/hotplug/usb.agent 18 Jan 2002 03:10:42 -0000 1.19 +++ etc/hotplug/usb.agent 11 Mar 2002 21:52:10 -0000 @@ -297,6 +297,9 @@ case $ACTION in =20 add) + # Let the usb subsystem finish talking to the device, before we do + sleep 3 + usb_convert_vars =20 FOUND=FAlse _______________________________________________ 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