mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* USB keyboards (patch)
@ 2002-08-26 22:00 Itai Nahshon
  2002-08-27  5:50 ` Felix Seeger
  0 siblings, 1 reply; 5+ messages in thread
From: Itai Nahshon @ 2002-08-26 22:00 UTC (permalink / raw)
  To: Vojtech Pavlik; +Cc: linux-kernel

Vojtech, Would you accept this for the 2.4 kernels?

The attached patch is required to use some (buggy?)
USB keyboards. IMHO it should not cause new problems
with other HID devices (though, testing with hardware that
I do not have is a good idea).

I'm using it with recent 2.4 kernels for some time now.

Just removing the call to usb_set_idle also works (but
it is less efficient).

The 2.5 kernels do not need this changes - they already call
the equivalent of usb_set_idle (only for input reports) after
reading the first report.

-- Itai

--- linux/drivers/usb/hid-core.c.orig	Sun Jul 21 01:19:32 2002
+++ linux/drivers/usb/hid-core.c	Sun Jul 21 02:19:31 2002
@@ -1065,8 +1065,8 @@
 			list = report_enum->report_list.next;
 			while (list != &report_enum->report_list) {
 				report = (struct hid_report *) list;
-				usb_set_idle(hid->dev, hid->ifnum, 0, report->id);
 				hid_read_report(hid, report);
+				usb_set_idle(hid->dev, hid->ifnum, 0, report->id);
 				list = list->next;
 			}
 		}



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-27  6:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-26 22:00 USB keyboards (patch) Itai Nahshon
2002-08-27  5:50 ` Felix Seeger
2002-08-27  6:28   ` Thunder from the hill
2002-08-27  6:33   ` Itai Nahshon
2002-08-27  6:39     ` Felix Seeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®