svn commit: r227396 - in head/sys/dev/usb: . controller
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Nov 9 18:11:29 UTC 2011
Author: hselasky
Date: Wed Nov 9 18:11:29 2011
New Revision: 227396
URL: http://svn.freebsd.org/changeset/base/227396
Log:
Fix size of USB 3.0 descriptor field.
MFC after: 3 days
Modified:
head/sys/dev/usb/controller/xhci.c
head/sys/dev/usb/usb.h
Modified: head/sys/dev/usb/controller/xhci.c
==============================================================================
--- head/sys/dev/usb/controller/xhci.c Wed Nov 9 17:38:27 2011 (r227395)
+++ head/sys/dev/usb/controller/xhci.c Wed Nov 9 18:11:29 2011 (r227396)
@@ -2841,7 +2841,8 @@ struct xhci_bos_desc xhci_bosd = {
HSETW(.wSpeedsSupported, 0x000C),
.bFunctionalitySupport = 8,
.bU1DevExitLat = 255, /* dummy - not used */
- .bU2DevExitLat = 255, /* dummy - not used */
+ .wU2DevExitLat[0] = 0x00,
+ .wU2DevExitLat[1] = 0x08,
},
.cidd = {
.bLength = sizeof(xhci_bosd.cidd),
Modified: head/sys/dev/usb/usb.h
==============================================================================
--- head/sys/dev/usb/usb.h Wed Nov 9 17:38:27 2011 (r227395)
+++ head/sys/dev/usb/usb.h Wed Nov 9 18:11:29 2011 (r227396)
@@ -336,7 +336,7 @@ struct usb_devcap_ss_descriptor {
uWord wSpeedsSupported;
uByte bFunctionalitySupport;
uByte bU1DevExitLat;
- uByte bU2DevExitLat;
+ uWord wU2DevExitLat;
} __packed;
typedef struct usb_devcap_ss_descriptor usb_devcap_ss_descriptor_t;
More information about the svn-src-head
mailing list