PERFORCE change 166432 for review

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jul 23 07:51:08 UTC 2009


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

Change 166432 by hselasky at hselasky_laptop001 on 2009/07/23 07:50:54

	
	USB input:
	 - fix bad class quirk for UMS driver.
	 - patch by Bryan Venteicher

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/input/ums.c#20 edit

Differences ...

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

@@ -535,6 +535,9 @@
 	 * it has two addional buttons and a tilt wheel.
 	 */
 	if (usb_test_quirk(uaa, UQ_MS_BAD_CLASS)) {
+
+		sc->sc_iid = 0;
+
 		info = &sc->sc_info[0];
 		info->sc_flags = (UMS_FLAG_X_AXIS |
 		    UMS_FLAG_Y_AXIS |
@@ -544,11 +547,17 @@
 		isize = 5;
 		/* 1st byte of descriptor report contains garbage */
 		info->sc_loc_x.pos = 16;
+		info->sc_loc_x.size = 8;
 		info->sc_loc_y.pos = 24;
+		info->sc_loc_y.size = 8;
 		info->sc_loc_z.pos = 32;
+		info->sc_loc_z.size = 8;
 		info->sc_loc_btn[0].pos = 8;
+		info->sc_loc_btn[0].size = 1;
 		info->sc_loc_btn[1].pos = 9;
+		info->sc_loc_btn[1].size = 1;
 		info->sc_loc_btn[2].pos = 10;
+		info->sc_loc_btn[2].size = 1;
 
 		/* Announce device */
 		device_printf(dev, "3 buttons and [XYZ] "


More information about the p4-projects mailing list