From patchwork Thu Jun 28 17:54:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeng Tao X-Patchwork-Id: 140430 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2067458ljj; Thu, 28 Jun 2018 04:35:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOS+AafLStvoM1f0r90o3No/AdheXqIvFHFUjZYCA+gM1FeBICZJGi3ZjaZbwmhpmIqGcB X-Received: by 2002:a50:be49:: with SMTP id b9-v6mr8682790edi.46.1530185724499; Thu, 28 Jun 2018 04:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530185724; cv=none; d=google.com; s=arc-20160816; b=MY13zV7R7zrqov9KOUNvB4BpRlr5JY74zNlaAc1pYtIBaHYhFq+mifxFuljeU19Z5f NIBJ8lkkO8U1Q40gQR+1TlyfeOgWgEUfgBmaBg9mNBp+UkQUIKiSxJH15Bl7hLsaWZKl m7+qiVh/KR5+JNZ5gIBa4r3F3JWlXi0e28ERcvyIctKOEWjZEpXfxUILuvRHcQBkA2Yc K1jEGDCwEt3FJ255rmi9lAO2QAGPJxzYk64U/2M8BwF3iOk1DPDrig4S0CPnHLZPMyIx 2EGJMhRE4dRuNHvZ04ea/4+VkLCB4/sLRQHpm4i/rsnokaSL2YdthXKOaPGmdLWnxhR6 xC7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:arc-authentication-results; bh=c9BYF/sdF20BZ1tPMRRNb1PA0uVtUnKCsx7NSqWSZU0=; b=s5wNKsJORr0EBOuDCxu7Yp3rhOIRYEdISlVsIjGLHEdgBATcf6+NU1kwClE3gKkG5u l03SYZFNBjcue978ZARLQUABxM9a0nEugB7Gyk58sKc0/oJISpNk4GvqaCq7XGyk91EN UakWlDKbHUEUR9utGPZj2bPOnCkGckcSvm8l1MFcNbh+zdPDYl/X2LqQIVaQMweXLqSm w+QfBFuDdGtzW05N2M8deExa+zeD3LjJ6gVBARxIAj3re7vSjgj6NjtWYCc5WzlQ/d/H a6tVxp1LlKYxwCnlvI1bUby7tBgOgzGStzycN1+OzZoiSBaFWeSymhoETbckj3HPxtnb h1PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o89-v6si3361140eda.128.2018.06.28.04.35.24; Thu, 28 Jun 2018 04:35:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 0D1EBC21E1D; Thu, 28 Jun 2018 11:32:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DATE_IN_FUTURE_06_12, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CD812C21E70; Thu, 28 Jun 2018 11:29:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6F9E9C21C4A; Thu, 28 Jun 2018 09:56:26 +0000 (UTC) Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) by lists.denx.de (Postfix) with ESMTPS id DF168C21C29 for ; Thu, 28 Jun 2018 09:56:25 +0000 (UTC) Received: from lhreml706-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 993C548583DDB; Thu, 28 Jun 2018 10:56:23 +0100 (IST) Received: from DGGEMS402-HUB.china.huawei.com (10.3.19.202) by lhreml706-cah.china.huawei.com (10.201.108.47) with Microsoft SMTP Server (TLS) id 14.3.382.0; Thu, 28 Jun 2018 10:56:24 +0100 Received: from dessert.huawei.com (10.69.192.158) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.382.0; Thu, 28 Jun 2018 17:56:10 +0800 From: Zeng Tao To: Date: Fri, 29 Jun 2018 01:54:19 +0800 Message-ID: <1530208459-32073-1-git-send-email-prime.zeng@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.158] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 28 Jun 2018 11:28:54 +0000 Cc: u-boot@lists.denx.de, Zeng Tao Subject: [U-Boot] [PATCH] usb: ohci: change the NUM_EDs from 8 to 32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" For ohci, the maximam supported endpoint number is 32(in and out), and now we have used (usb_pipeendpoint(pipe) << 1) to index the specified endpoint descritor, usb_pipeendpoint(pipe) can reach 0xf, so we need change the NUM_EDs from 8 to 32. Signed-off-by: Zeng Tao --- drivers/usb/host/ohci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h index 2350831..fba78dc 100644 --- a/drivers/usb/host/ohci.h +++ b/drivers/usb/host/ohci.h @@ -359,7 +359,7 @@ typedef struct } urb_priv_t; #define URB_DEL 1 -#define NUM_EDS 8 /* num of preallocated endpoint descriptors */ +#define NUM_EDS 32 /* num of preallocated endpoint descriptors */ #define NUM_TD 64 /* we need more TDs than EDs */