From patchwork Mon Aug 18 14:28:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 35528 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 487F620676 for ; Mon, 18 Aug 2014 15:13:42 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf41330033pde.2 for ; Mon, 18 Aug 2014 08:13:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=itPbrgtpLjtyj4biQ+nW+vebGYh+bnuatLRaT89Wsgg=; b=jnuAfobTvi3xmAbMq1uLp0qhKcxq5mGLk0ZoOHk5CpvM24n0qW2b3TGGx9GCueeCcw ePqFK1KVYp/lJX6MTjBxZuytUJbRcFvTYz3nD05KpP7Rlcvs/6Q1MKcW3YVixAFZJ6Ki J9zkO1e9VU7kUDeMKzTSNI2CtTTOLxgRgP8EOX0W32/PKjs28Z9AYiNEMJJjIT3UEHxc x9TxcFDhp49sBNqvk9g+hQnu8tboDe2qTOKWrsXA/cdY7Bx6bAURCmA6hSCZuZgmq6Vz d0d7boOPQ9AwXBoeKU/y3wTQ+ZHcDBqS0t/YqegbQrmhJRe1hsGlpV/xfEdBCOc6Tdk4 fO0g== X-Gm-Message-State: ALoCoQkTIuuFIsysvNZWeWDDKduLNCZqd74CXHr9q5l9rRkEOQbkvz+dY1R50Tkv9W4+5VAu8H2I X-Received: by 10.67.5.228 with SMTP id cp4mr18335614pad.8.1408374814531; Mon, 18 Aug 2014 08:13:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.133 with SMTP id c5ls2357175qga.38.gmail; Mon, 18 Aug 2014 08:13:34 -0700 (PDT) X-Received: by 10.220.114.5 with SMTP id c5mr25403187vcq.28.1408374814304; Mon, 18 Aug 2014 08:13:34 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id o11si7218690vci.77.2014.08.18.08.13.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Aug 2014 08:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so5963794vcb.33 for ; Mon, 18 Aug 2014 08:13:34 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr1123807vca.45.1408374814219; Mon, 18 Aug 2014 08:13:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp160583vcb; Mon, 18 Aug 2014 08:13:33 -0700 (PDT) X-Received: by 10.180.221.172 with SMTP id qf12mr41249963wic.18.1408374813079; Mon, 18 Aug 2014 08:13:33 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id o10si25884382wjy.11.2014.08.18.08.13.32 for ; Mon, 18 Aug 2014 08:13:33 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 823954B61F; Mon, 18 Aug 2014 17:11:14 +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 atV9LmCh8EHF; Mon, 18 Aug 2014 17:11:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D10D2A73F8; Mon, 18 Aug 2014 17:08:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0E2AB4A03B for ; Mon, 18 Aug 2014 16:30:02 +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 sTnNA2yOEz4r for ; Mon, 18 Aug 2014 16:29:55 +0200 (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 arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id C28854A040 for ; Mon, 18 Aug 2014 16:29:20 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7IETE1J006730 for ; Mon, 18 Aug 2014 09:29:14 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IETEjb006755 for ; Mon, 18 Aug 2014 09:29:14 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 18 Aug 2014 09:29:14 -0500 Received: from a0393678lt.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IESbME003614; Mon, 18 Aug 2014 09:29:12 -0500 From: Kishon Vijay Abraham I To: , , , , , , Date: Mon, 18 Aug 2014 19:58:35 +0530 Message-ID: <1408372115-4570-14-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408372115-4570-1-git-send-email-kishon@ti.com> References: <1408372115-4570-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 18 Aug 2014 17:07:53 +0200 Subject: [U-Boot] [UBOOT RFC PATCH 13/13] dwc3: core: Change the bounce buffer size to 4096 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Bounce buffer is used for transferring requests which is not maxpacket aligned. In the case of DFU the requests can be upto 4096 bytes. While the actual fix for this should be using two chained TRBs to handle the transfer, this can be used as a temporary fix. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index e9ea7ca..e9f43b4 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -24,7 +24,7 @@ #include /* Global constants */ -#define DWC3_EP0_BOUNCE_SIZE 512 +#define DWC3_EP0_BOUNCE_SIZE 4096 #define DWC3_ENDPOINTS_NUM 32 #define DWC3_XHCI_RESOURCES_NUM 2