From patchwork Wed Sep 25 23:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174434 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313504ill; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) X-Received: by 2002:a63:78cf:: with SMTP id t198mr440875pgc.227.1569454956481; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454956; cv=none; d=google.com; s=arc-20160816; b=02RNunYc3KbnErJP/TwCJXJkBMWDcDx1Vs85JXIx0zEnvrK5kHvrrdWOo6/BOVjaxu DT7dVeiBRgM0opolUx23uk40KdLXmdMFqfOhTpNM2XaUIdR0r0DX3WIXUa091huDqEAm f6WDOvD4gzFYO4JSoAzS8CPpb2/uHjSclQuUInMN5SBRTsEuhZrgAiokEBsVSKeh5LPM T60f0YpxlZrXYEEVr9vjGQrmrJHSD+7z/0ECRxcF1nrF5TMt/JAgf+nQAT9iurBN7NnG osF59XvmyoloCp+uOEiPETrzYMDmN8J/Z7I77bq3ADVVJiFBpiw1mqDOdMA+c98T3zqy J/0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=HRzT+rpqJHU/3oZQVniC5Po3WmIOquq9lBDq8wRqjfJb23FLy+rdUK41C9Rm/dv52H 0Q4Bv2++pbw8Nv0RzKPQ7STEqBtCJHQ0XBEkqyLF2wc7Mt7FBgwGeZpCYGPt/pUIe4dl RTTKM0xpVH+Oii/+FB3b0FKBlsiBNfzM/qABMxJsm+P7km/LcNSFB8WML2+kSilkIX9p P+knPYPN9LpWvlh/HJ2/LOHe5Fx2A4n+IASRaK1hxQPvhdkEIgpMzieJJp5H/4hDpdsf z7GJLNCwy2/PvIgxiApM+zOe56ZQqlK0wGwljIlxdJPHVxx+KG7/ldUuOZryaAhfmluI v6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvDA+NkZ; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 32sor314599plc.6.2019.09.25.16.42.36 for (Google Transport Security); Wed, 25 Sep 2019 16:42:36 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvDA+NkZ; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=XvDA+NkZlQlzPntPpjyLnCwo/WMpiawNV16X6mS3GsH4vcvrLxIwDzxYjPuOD4qfwe bTRHEmnPfk0/rdKZnFAtoCQ/uIhxYV+bdRcwqF4ULyV+nZYiAAeF3Hi+sb9L4Czig47U /yVBx0tgtnVfRk5pxFgslL0VtxWhQD9bw6cQnOCIGsZHsRmU5hkfrqI011qcoF/iRPYA i3HVbdthKqwyEnRg6KjgxzIkY/XUU6CHm6+e6rL7aUTdfykUhIvWnKW4kc9siqTAtV45 O2D9wxGy8ZzlLJort0W50oCWJ+aH9H4HR9Veu43IDm7Sm29yvfGM/qaBLLF3Fzsi11R4 0JtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=sXX5OTfyAB2H1Ooc9DaoDCnUNhU03rLioIfmawmHUkamSATR/LOAxnkl4FcnZdfnlu RCJfqLe6wadTwjgwvWgdrpcQULeU7VDTZVyUCErfXb/ulmkIP+l8khdZjWNLbtWacdjl 7fX+EDj9CciH/OvYAQeE4DRVnlgZ4kWMRdEExfqYZo6bsGc64LueNygBKjNRn98GjIef svwUQ7WtQSGFtc+dX3Hadoxu8Z8Sn+GY/3Dlx1Y+gzDCFj6gHnmw/6QmqDfZIDHoz9Ig aF+QhL0Vl5kbjGFKLpnIQU7uK9OaCTTPLM4+pC2ORLr76t0vWdAaXxiFWC9toh2gg+zV F3iQ== X-Gm-Message-State: APjAAAVeKdZNIFvJRUpGhRhQ2ktzLUe+WJYEqubtgTCTFKSo4VhPbCj2 TJQ+r8cQNLM12zMV0hif1hSuWZzY X-Google-Smtp-Source: APXvYqyOtcEZXkAQw/XIO3JzERDkezLxycWYYHw08A6acjxATTtdAu3X9Fx8RAKp+WZv6SnW21J0rw== X-Received: by 2002:a17:902:aa07:: with SMTP id be7mr738556plb.172.1569454956010; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:35 -0700 (PDT) From: John Stultz To: lkml Cc: Yu Chen , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, John Stultz Subject: [PATCH 3/5] usb: dwc3: Increase timeout for CmdAct cleared by device controller Date: Wed, 25 Sep 2019 23:42:22 +0000 Message-Id: <20190925234224.95216-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> From: Yu Chen It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8adb59f8e4f1..81907e163252 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;