PERFORCE change 162203 for review

Hans Petter Selasky hselasky at FreeBSD.org
Sun May 17 11:54:01 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=162203

Change 162203 by hselasky at hselasky_laptop001 on 2009/05/17 11:53:19

	
	USB input:
	  - be more verbose

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#9 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#9 (text+ko) ====

@@ -743,6 +743,8 @@
 	err = usb2_req_get_hid_desc(uaa->device, NULL, &hid_ptr,
 	    &hid_len, M_TEMP, uaa->info.bIfaceIndex);
 	if (err == 0) {
+		uint8_t temp_id;
+
 		/* investigate if this is an Apple Keyboard */
 		if (hid_locate(hid_ptr, hid_len,
 		    HID_USAGE2(HUP_CONSUMER, HUG_APPLE_EJECT),
@@ -754,10 +756,13 @@
 			if (hid_locate(hid_ptr, hid_len,
 			    HID_USAGE2(0xFFFF, 0x0003),
 			    hid_input, 0, &sc->sc_loc_apple_fn, &flags,
-			    &sc->sc_kbd_id)) {
+			    &temp_id)) {
 				if (flags & HIO_VARIABLE)
 					sc->sc_flags |= UKBD_FLAG_APPLE_FN |
 					    UKBD_FLAG_APPLE_SWAP;
+				if (temp_id != sc->sc_kbd_id) {
+					DPRINTF("HID IDs mismatch\n");
+				}
 			}
 		} else {
 			/* 


More information about the p4-projects mailing list