Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 11:53:59 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 162203 for review
Message-ID:  <200905171153.n4HBrxCe008413@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162203

Change 162203 by hselasky@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 {
 			/* 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905171153.n4HBrxCe008413>