patch-2.3.41 linux/drivers/usb/usbmouse.c

Next file: linux/drivers/usb/uss720.c
Previous file: linux/drivers/usb/usbkbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/drivers/usb/usbmouse.c linux/drivers/usb/usbmouse.c
@@ -83,8 +83,9 @@
 	if ((endpoint->bmAttributes & 3) != 3) return NULL;
 
 #ifndef USBMOUSE_EXTRA
-	usb_set_protocol(dev, 0);
+	usb_set_protocol(dev, interface->bInterfaceNumber, 0);
 #endif
+	usb_set_idle(dev, interface->bInterfaceNumber, 0, 0);
 
 	if (!(mouse = kmalloc(sizeof(struct usb_mouse), GFP_KERNEL))) return NULL;
 	memset(mouse, 0, sizeof(struct usb_mouse));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)