Author: hselasky
Date: Tue Nov 13 17:16:03 2012
New Revision: 242987
URL: http://svnweb.freebsd.org/changeset/base/242987

Log:
  MFC 228304:
  Correct some bInterval USB template descriptor values.

Modified:
  stable/8/sys/dev/usb/template/usb_template.c
  stable/8/sys/dev/usb/template/usb_template_kbd.c
  stable/8/sys/dev/usb/template/usb_template_modem.c
  stable/8/sys/dev/usb/template/usb_template_mouse.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/usb/   (props changed)

Modified: stable/8/sys/dev/usb/template/usb_template.c
==============================================================================
--- stable/8/sys/dev/usb/template/usb_template.c        Tue Nov 13 17:11:36 
2012        (r242986)
+++ stable/8/sys/dev/usb/template/usb_template.c        Tue Nov 13 17:16:03 
2012        (r242987)
@@ -260,7 +260,7 @@ usb_make_endpoint_desc(struct usb_temp_s
                                        ed->bInterval = 1;      /* 1 ms */
                                        break;
                                default:
-                                       ed->bInterval = 8;      /* 8*125 us */
+                                       ed->bInterval = 4;      /* 1 ms */
                                        break;
                                }
                                break;

Modified: stable/8/sys/dev/usb/template/usb_template_kbd.c
==============================================================================
--- stable/8/sys/dev/usb/template/usb_template_kbd.c    Tue Nov 13 17:11:36 
2012        (r242986)
+++ stable/8/sys/dev/usb/template/usb_template_kbd.c    Tue Nov 13 17:16:03 
2012        (r242987)
@@ -89,9 +89,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval keyboard_intr_interval = {
-       .bInterval[USB_SPEED_LOW] = 2,  /* ms */
-       .bInterval[USB_SPEED_FULL] = 2,
-       .bInterval[USB_SPEED_HIGH] = 2 * 8,
+       .bInterval[USB_SPEED_LOW] = 2,  /* 2 ms */
+       .bInterval[USB_SPEED_FULL] = 2, /* 2 ms */
+       .bInterval[USB_SPEED_HIGH] = 5, /* 2 ms */
 };
 
 /* The following HID descriptor was dumped from a HP keyboard. */

Modified: stable/8/sys/dev/usb/template/usb_template_modem.c
==============================================================================
--- stable/8/sys/dev/usb/template/usb_template_modem.c  Tue Nov 13 17:11:36 
2012        (r242986)
+++ stable/8/sys/dev/usb/template/usb_template_modem.c  Tue Nov 13 17:16:03 
2012        (r242987)
@@ -98,9 +98,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval modem_intr_interval = {
-       .bInterval[USB_SPEED_LOW] = 10,
-       .bInterval[USB_SPEED_FULL] = 10,
-       .bInterval[USB_SPEED_HIGH] = 10 * 8,
+       .bInterval[USB_SPEED_LOW] = 8,  /* 8ms */
+       .bInterval[USB_SPEED_FULL] = 8, /* 8ms */
+       .bInterval[USB_SPEED_HIGH] = 7, /* 8ms */
 };
 
 static const struct usb_temp_endpoint_desc modem_ep_0 = {

Modified: stable/8/sys/dev/usb/template/usb_template_mouse.c
==============================================================================
--- stable/8/sys/dev/usb/template/usb_template_mouse.c  Tue Nov 13 17:11:36 
2012        (r242986)
+++ stable/8/sys/dev/usb/template/usb_template_mouse.c  Tue Nov 13 17:16:03 
2012        (r242987)
@@ -101,9 +101,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval mouse_intr_interval = {
-       .bInterval[USB_SPEED_LOW] = 2,
-       .bInterval[USB_SPEED_FULL] = 2,
-       .bInterval[USB_SPEED_HIGH] = 2 * 8,
+       .bInterval[USB_SPEED_LOW] = 2,          /* 2ms */
+       .bInterval[USB_SPEED_FULL] = 2,         /* 2ms */
+       .bInterval[USB_SPEED_HIGH] = 5,         /* 2ms */
 };
 
 static const struct usb_temp_endpoint_desc mouse_ep_0 = {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to