Date: Tue, 18 Aug 2009 16:05:19 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 167481 for review Message-ID: <200908181605.n7IG5Jwn074093@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167481 Change 167481 by hselasky@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908181605.n7IG5Jwn074093>