Skip to contentSkip to conversation

USB keyboards (patch)

PATCH Itai Nahshon 3 participants 5 messages Aug 26, 2002 – Aug 27, 2002 USB

lore
Share & tools
lore
#0 lore raw

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

drivers/usb/hid-core.c renamed from drivers/usb/hid-core.c.orig +1 -1
@@ -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;
 			}
 		}
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does this Patch solves the kernel panic on startup with USB Mouse plugged in the second usb part and MS Usb keyboard plugged in the first port ?

thanks
have fun
Felix

Am Dienstag, 27. August 2002 00:00 schrieb Itai Nahshon:

Quoted 33 lines

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

drivers/usb/hid-core.c renamed from drivers/usb/hid-core.c.orig +1 -2
@@ -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;
 			}
 		}
 
 
-
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9axM5S0DOrvdnsewRApKfAJ9sD2I/61znoiV0MEJXHCjgvNGuVACfRidm 5vdlQPwSXEvzd/TxD4FbI+s=
=xkNg
-----END PGP SIGNATURE-----

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Quoted 2 lines · Felix Seeger

Does this Patch solves the kernel panic on startup with USB Mouse plugged in the second usb part and MS Usb keyboard plugged in the first port ?

Care to find out?

Thunder
- --
- --./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
- --/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..- .- -/---/--/---/.-./.-./---/.--/.-.-.-
- --./.-/-.../.-./.././.-../.-.-.-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9axwmC3BvqgN/skgRAr0VAKDri4yg11WPA86ZrZ2GQPIWdtFcdwCg3UZy Xv6zNEISeZZf4aOWG7WGpqU=
=7CrU
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Felix Seeger

I doubt it can fix any panic. The symptoms that I had, addressed by the patch, are just the keyboard not sending any input event.
Is there an Oops/stack trace/other diagnostic data for the problem that you describe with MS Usb keyboard?

-- Itai

Quoted 51 lines · Felix Seeger

Does this Patch solves the kernel panic on startup with USB Mouse plugged in the second usb part and MS Usb keyboard plugged in the first port ?

thanks
have fun
Felix

Am Dienstag, 27. August 2002 00:00 schrieb Itai Nahshon:

Quoted 33 lines

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

drivers/usb/hid-core.c renamed from drivers/usb/hid-core.c.orig +1 -2
@@ -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;
 			}
 		}
 
 
-
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Some I time ago I sended the oops or ayiii (what is the difference, it was an ayiiii)

The list told me that I should use ksysmoops.

The problem doesn't come up if I plug the mouse in the usb hub of the keyboard.
Everything works well if it is in the first port, only the second makes the problem.

I hope I can reproduce it later today and run ksysmoops to get some information.

thanks
have fun
Felix

Am Dienstag, 27. August 2002 08:33 schrieb Itai Nahshon:

Quoted 6 lines

I doubt it can fix any panic. The symptoms that I had, addressed by the patch, are just the keyboard not sending any input event.
Is there an Oops/stack trace/other diagnostic data for the problem that you describe with MS Usb keyboard?

Quoted 54 lines

-- Itai

Quoted 51 lines · Felix Seeger

Does this Patch solves the kernel panic on startup with USB Mouse plugged in the second usb part and MS Usb keyboard plugged in the first port ?

thanks
have fun
Felix

Am Dienstag, 27. August 2002 00:00 schrieb Itai Nahshon:

Quoted 33 lines

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

drivers/usb/hid-core.c renamed from drivers/usb/hid-core.c.orig +1 -2
@@ -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;
 			}
 		}
 
 
-
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ax66S0DOrvdnsewRAoYLAJ9qUQVWIuOCo0e8wlXeLMzwaDIrJQCaA7AV WBIuKNh2odPuZkUKyz6nZrQ=
=dqd5
-----END PGP SIGNATURE-----