From patchwork Wed Oct 16 03:33:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 176405 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6783625ill; Tue, 15 Oct 2019 20:33:48 -0700 (PDT) X-Received: by 2002:a17:90a:a891:: with SMTP id h17mr2299766pjq.32.1571196828397; Tue, 15 Oct 2019 20:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571196828; cv=none; d=google.com; s=arc-20160816; b=rE/VODf8G7hh0vJPFCFfw/APwhlnNgmR8qPHIa3QFJYPD1hAfuo5hla89HPyjXDx7u oxJ1CpgwzGjQulsq/s89NDX9oObA5mxws7ZxlSKkWcOJJJoWHym/b9Pm+y8YnUrmbtIj nMuREOBogSWpu6sqGwc274HexFBjY71Cjqo6mBBkdqqHd2xXc5+J0zns44HQw93xF3ly va2VGc+dlKTYovS5JQbunbqnuHBb9BWV13jbsVRcJ/yIGmAwMi2r3C5NHRGPVz7Lp6Sg clH3d44p9LQcCaVvvPE+p38I8ktWhz+ndtzpGU8sHDp7q/9b3Z5RneL1eBKjrshRNMp2 9siA== 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=NtLLzsDOIuiH39rP2uuMmF0oaTj9DHzaakbaIjXt74A=; b=TxJhm/I+3V5vef5W/56TFusCvF++1045Ndq1HR3V9U00Zku7qqLExfwQJPnISvJDvQ uWDyhpKdLdmzHdeUCNArpHPdyWq1eALrx/c14NsjkgkwcnOTPPZrVhOKk9fyOV0GLx4n gpTwsZJ7ekEHM0WkqTd42AP60+8HKDKwqKCOxmHyXC3hGmwonHSs4yQj+D3tsXX/9/l3 o4TF/P4r/mimAXXXEJ7XTiteGg/rqEte2XIn6UUbajoYEx6j8mIC8XZuGDa/GxydIjuB WkSTuOdmJmCO6CuNWyUwgVPTN+1UVeqVXz80ggx2vKNYmIdF6pwpy3Q4uB4cE8Jbwut3 3k9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vPB51r4E; 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 p4sor30062143pli.32.2019.10.15.20.33.48 for (Google Transport Security); Tue, 15 Oct 2019 20:33:48 -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=vPB51r4E; 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=NtLLzsDOIuiH39rP2uuMmF0oaTj9DHzaakbaIjXt74A=; b=vPB51r4EZ8stXyXSv4G88Vclvyv30hhGw3Tpf379BTU6tuj4TcKIJfGOECfS9HgZxC sOrbB6xhou5OBa2HlB+vuU2WBsw4f/epqpY2AKZc4vX3zf/GGEi7NTWl3NRCe7TWT4xh gWLBrp4TL0Jjk5b9CCugv6PxSzCLRtTIAkR1zEpMsBJX8R06I74CldwORwLPGQGe6qTL HJEJ0mLdHAx4O2EJZm2EdpYqyXc00yPju4FmuoIeGvCO0cyES07xGg+PZECCBEsIKeIj drFgq8KvXV8U7VRXLDSQCSN3+2iDEOUJ+cCsx3GB7nVHoDqZcrH2wKcd/RNABDOj72qN WTCg== 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=NtLLzsDOIuiH39rP2uuMmF0oaTj9DHzaakbaIjXt74A=; b=mIsxn8fJHR/pwZ6Rj8WagdqPyR7oYAdbugpSp2ImS3yQJhOxAaPdusj+eMHe3/q6cm Wp6DnMUcIDIvMSDPriGMf/xlrYg1qBrJDJ/JwBN2V3t57rKnIjcmdMyQf0aJN7kwC86I evVemhLFyV5SOj9Dk8I2D1nK+6qMp+4u5AdHv456/IuM/m3aqXjPMPjErFV0nDvleHoy AFc7Y40PNjTLGakTQAaU2kCrEkFb1PiO1u3JOsyzx3KSh81TR6/RoSp809aZyXIIlTWT JBhoRAHBpruGbvr+miRxND+k8Ggi0L03XZeT5O6pw0kAPwT7iA/JXk03loHg/jvKALa4 OsSw== X-Gm-Message-State: APjAAAXJ8qmSeeXKhNRBTJ3TiQJTPDccCmGAN9ewyFbVhRzp50L6uc/V 8xs55J3j082Wa1wYtV2j10RsC01F X-Google-Smtp-Source: APXvYqzFCD/6MuKpzLdXxEtnegE2Po5uAh/iIxgZiDEZd0o2kcUaDRjQ4rIow2Sz5ik6Cxtqptfa3w== X-Received: by 2002:a17:902:d691:: with SMTP id v17mr37578925ply.340.1571196827898; Tue, 15 Oct 2019 20:33:47 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l23sm748356pjy.12.2019.10.15.20.33.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 20:33:47 -0700 (PDT) From: John Stultz To: lkml Cc: Yu Chen , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, John Stultz Subject: [RFC][PATCH v3 03/11] usb: dwc3: Increase timeout for CmdAct cleared by device controller Date: Wed, 16 Oct 2019 03:33:32 +0000 Message-Id: <20191016033340.1288-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191016033340.1288-1-john.stultz@linaro.org> References: <20191016033340.1288-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: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: Jack Pham 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 86dc1db788a9..168eb4a0a9b0 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;