Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp179533yba; Fri, 19 Apr 2019 23:43:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6Y0Nl2vPd/Okete0a19v2TfyfhscMQkmNttQfwy7a+7moLVPuEPN4VVNK6v+PJr2pXO10 X-Received: by 2002:a62:6e05:: with SMTP id j5mr8351935pfc.5.1555742632801; Fri, 19 Apr 2019 23:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555742632; cv=none; d=google.com; s=arc-20160816; b=W3jFoJDX8818/fOengbQ9LWPm4c23uXfvXFU1lh3sM+0YdlXdoxXTRoSTtMvMKPUev 1D+Q6nzLaWtKq+mV6fZfqaeoC8pSyDz0vMICduIuv236s8+Q4ggK46fPYfd+whSZ25D1 QZbH1UjLMaqUybpnNTMlBv+baBUBzEyQhzr+wEWjsWz6vf475pKpJx0MA3xUwqFJ1Nzu IyzVhFGt51dFEIudr3MelhLpBTfMBKHoMwVhIhQNb9xyqeTM/UghY4eVLKlby9VNbQHL qJ9+woVrvMH/bmpGyzF8QbwJCW9EXSraSKpFhqxJM+in03F419CubJAlHkIbygmcLOu0 Bv5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Gx16MPRMTe7fyqYEk0Y0GIOskmrlxFRaMOjqhJbcVPI=; b=s0TbDfMrMJHAac+i5W8cwXll2Nxoqz0DmWNc5JUhzH3kwSAGOu27dPhYCEIVWwHR2T tkI/tukKwXjS7TNBQ3KJq35RoCtsCBtkKIvTLqlLR4L/k46cZMfgyrlvr3NxzVGZFI1y +NhYXhWW/nitXZMYYnFGK1iJKgcUZ3BaxRD6NlK75B7oc8QEqwqUFaEhw6H/vZ95Nbi1 cAB/URuTSt6265c65NKrbDsinwolLXMq6drtXuRAZGJP2CcDQlQDNepLOCupk90Z3NfE WvqZCO+MA31CNyfLRJ4sfUc+rwhYxgTIQpuqC3wGTKpkl1BnfZLWJxMex2aqOYeGuZCN Wdbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si427024pgg.168.2019.04.19.23.43.38; Fri, 19 Apr 2019 23:43:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbfDTGkh (ORCPT + 99 others); Sat, 20 Apr 2019 02:40:37 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39408 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727256AbfDTGkh (ORCPT ); Sat, 20 Apr 2019 02:40:37 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7154BD32097A94C9C402; Sat, 20 Apr 2019 14:40:34 +0800 (CST) Received: from vm100-107-113-134.huawei.com (100.107.113.134) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Sat, 20 Apr 2019 14:40:28 +0800 From: Yu Chen To: , , CC: , , , , , , , , , , , , , , Yu Chen , Andy Shevchenko , Felipe Balbi , "Greg Kroah-Hartman" , Binghui Wang Subject: [PATCH v6 06/13] usb: dwc3: Increase timeout for CmdAct cleared by device controller Date: Sat, 20 Apr 2019 14:40:12 +0800 Message-ID: <20190420064019.57522-7-chenyu56@huawei.com> X-Mailer: git-send-email 2.15.0-rc2 In-Reply-To: <20190420064019.57522-1-chenyu56@huawei.com> References: <20190420064019.57522-1-chenyu56@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [100.107.113.134] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e293400cc6e9..9cefb579e161 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -270,7 +270,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd, { const struct usb_endpoint_descriptor *desc = dep->endpoint.desc; struct dwc3 *dwc = dep->dwc; - u32 timeout = 1000; + u32 timeout = 5000; u32 saved_config = 0; u32 reg; -- 2.15.0-rc2