From owner-svn-src-head@FreeBSD.ORG Fri Apr 11 14:11:56 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E027DDB; Fri, 11 Apr 2014 14:11:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4AE6B1FDB; Fri, 11 Apr 2014 14:11:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BEBu20071106; Fri, 11 Apr 2014 14:11:56 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3BEBtFJ071104; Fri, 11 Apr 2014 14:11:55 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201404111411.s3BEBtFJ071104@svn.freebsd.org> From: Hans Petter Selasky Date: Fri, 11 Apr 2014 14:11:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264344 - head/lib/libusb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 14:11:56 -0000 Author: hselasky Date: Fri Apr 11 14:11:55 2014 New Revision: 264344 URL: http://svnweb.freebsd.org/changeset/base/264344 Log: Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 APIs to increase the maximum bandwidth limit. MFC after: 1 week Modified: head/lib/libusb/libusb01.c head/lib/libusb/libusb10.c Modified: head/lib/libusb/libusb01.c ============================================================================== --- head/lib/libusb/libusb01.c Fri Apr 11 13:48:45 2014 (r264343) +++ head/lib/libusb/libusb01.c Fri Apr 11 14:11:55 2014 (r264344) @@ -127,6 +127,8 @@ usb_get_transfer_by_ep_no(usb_dev_handle bufsize = 256; } else if (speed == LIBUSB20_SPEED_FULL) { bufsize = 4096; + } else if (speed == LIBUSB20_SPEED_SUPER) { + bufsize = 65536; } else { bufsize = 16384; } Modified: head/lib/libusb/libusb10.c ============================================================================== --- head/lib/libusb/libusb10.c Fri Apr 11 13:48:45 2014 (r264343) +++ head/lib/libusb/libusb10.c Fri Apr 11 14:11:55 2014 (r264344) @@ -935,6 +935,9 @@ libusb10_get_buffsize(struct libusb20_de case LIBUSB20_SPEED_FULL: ret = 4096; break; + case LIBUSB20_SPEED_SUPER: + ret = 65536; + break; default: ret = 16384; break;