From owner-svn-src-all@FreeBSD.ORG Wed Nov 9 18:11:29 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAA0C1065677; Wed, 9 Nov 2011 18:11:29 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9CD8FC26; Wed, 9 Nov 2011 18:11:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA9IBTgW093709; Wed, 9 Nov 2011 18:11:29 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA9IBT7h093706; Wed, 9 Nov 2011 18:11:29 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201111091811.pA9IBT7h093706@svn.freebsd.org> From: Hans Petter Selasky Date: Wed, 9 Nov 2011 18:11:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227396 - in head/sys/dev/usb: . controller X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 18:11:29 -0000 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;