From patchwork Sun Apr 21 17:15:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Chauvet X-Patchwork-Id: 238231 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 430D12C010A for ; Mon, 22 Apr 2013 04:18:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 64D494A230; Sun, 21 Apr 2013 20:18:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id en63eLodAmQp; Sun, 21 Apr 2013 20:18:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1E8B64A233; Sun, 21 Apr 2013 20:18:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1DC264A1D1 for ; Sun, 21 Apr 2013 19:46:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BUIE39KVDKhL for ; Sun, 21 Apr 2013 19:46:21 +0200 (CEST) X-Greylist: delayed 1447 seconds by postgrey-1.27 at theia; Sun, 21 Apr 2013 19:46:19 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by theia.denx.de (Postfix) with ESMTPS id 751B14A1CD for ; Sun, 21 Apr 2013 19:46:19 +0200 (CEST) Received: by mail-we0-f172.google.com with SMTP id r3so5503855wey.3 for ; Sun, 21 Apr 2013 10:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=H9M1WwuTY2lV+Uu82PPm0jcShfw7g2hmh+QF43r5cPE=; b=hNr4I78yYCMNCWD476z93NxJt3cwNvgBOIc3Trr0fB3TzCOPnsLwloTCYeLyyqz+a2 tD0N6KHsAPiJ/ZbbWpjpXvJoXr8KlEterQB7Ew7FAR0SUE2AXyQf5Rbt7lI2h6LedwLu FQb8dWoHvg9K0iQPybw5AZbDNZoudfm+xdayiB0srY6L2klaAtmiF0rVq/+eUAyUh0eq jYfE0o41nNb8BIT/Z0TkjAUMgj5o4i/HcsNgjeqS93KbWV/EsEG/zLwknd5s+deEWvx/ 7SaQrf4uepxvE+2SFXyvR/qcATZIPMr+cNfhzopgBDA2oDhiTFIPuynIU/oeoxBVoC2g tmsQ== X-Received: by 10.180.97.132 with SMTP id ea4mr43807802wib.23.1366564526569; Sun, 21 Apr 2013 10:15:26 -0700 (PDT) Received: from arrakis.kwizart.net (234.12.195.77.rev.sfr.net. [77.195.12.234]) by mx.google.com with ESMTPS id k5sm16851633wiy.5.2013.04.21.10.15.23 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 21 Apr 2013 10:15:25 -0700 (PDT) From: Nicolas Chauvet To: u-boot@lists.denx.de Date: Sun, 21 Apr 2013 19:15:18 +0200 Message-Id: <1366564518-10324-1-git-send-email-kwizart@gmail.com> X-Mailer: git-send-email 1.7.11.7 X-Mailman-Approved-At: Sun, 21 Apr 2013 20:18:02 +0200 Subject: [U-Boot] [PATCH] Fix usb buffer size for large descriptor of devices X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de scanning bus 0 for devices... usb_get_configuration_no: failed to get descriptor - too long: 943 This was experienced on toshiba ac100 aka paz00, when discovering the webcam. This patch is probably wrong, as it raise the buffer for all usb. Instead it could probably be raised only per target system of maybe per kind of devices --- common/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb.c b/common/usb.c index 6fc0fc1..46f5ce5 100644 --- a/common/usb.c +++ b/common/usb.c @@ -68,7 +68,7 @@ #define USB_PRINTF(fmt, args...) debug_cond(USB_DEBUG, fmt, ##args) #define USB_HUB_PRINTF(fmt, args...) debug_cond(USB_HUB_DEBUG, fmt, ##args) -#define USB_BUFSIZ 512 +#define USB_BUFSIZ 1024 static struct usb_device usb_dev[USB_MAX_DEVICE]; static int dev_index;