Date: Wed, 9 Nov 2011 18:11:29 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227396 - in head/sys/dev/usb: . controller Message-ID: <201111091811.pA9IBT7h093706@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111091811.pA9IBT7h093706>