PERFORCE change 167481 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Aug 18 16:05:20 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167481
Change 167481 by hselasky at hselasky_laptop001 on 2009/08/18 16:04:45
USB input:
- add temporary tunable quirk sysctl to disable setting of keyboard leds
- Reported by: Yoshihiro Ota
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#30 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#30 (text+ko) ====
@@ -96,10 +96,14 @@
#if USB_DEBUG
static int ukbd_debug = 0;
+static int ukbd_no_leds = 0;
SYSCTL_NODE(_hw_usb, OID_AUTO, ukbd, CTLFLAG_RW, 0, "USB ukbd");
SYSCTL_INT(_hw_usb_ukbd, OID_AUTO, debug, CTLFLAG_RW,
&ukbd_debug, 0, "Debug level");
+SYSCTL_INT(_hw_usb_ukbd, OID_AUTO, no_leds, CTLFLAG_RW,
+ &ukbd_no_leds, 0, "Disables setting of keyboard leds");
+
#endif
#define UPROTO_BOOT_KEYBOARD 1
@@ -647,6 +651,11 @@
uint8_t buf[2];
struct ukbd_softc *sc = usbd_xfer_softc(xfer);
+#if USB_DEBUG
+ if (ukbd_no_leds)
+ return;
+#endif
+
switch (USB_GET_STATE(xfer)) {
case USB_ST_TRANSFERRED:
case USB_ST_SETUP:
More information about the p4-projects
mailing list