From patchwork Mon Oct 28 21:59:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 177971 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3978317ill; Mon, 28 Oct 2019 14:59:27 -0700 (PDT) X-Received: by 2002:a65:41c5:: with SMTP id b5mr6641890pgq.78.1572299967567; Mon, 28 Oct 2019 14:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572299967; cv=none; d=google.com; s=arc-20160816; b=Vdpz3030pRWJ6hstm/muPPXtpI8UQ6mNpI0AgweO4Zl7biKpkFyXlhWPQVBwfv9Oeq z3xVLE3/RWGPiEflHzHcv4isbrgiya/ELrP19IEoLZE0UooV9xqhaiNvEZTSxCcRftBa LKbdY8WwZhHHoDZzS2M/u9LGzv65wTl1Yk+VRIjCDp0m08KgyhtFE0nXXNXvZ0xuOJ78 exc4o52rUaRc49pqE4MDvvi7R0912LmigMduM76y2C1W7lxDYkypGlc2Hz5gKvTl0kwD SAmnfI9zVdjqplgYA8iqkNcBlezwaAc+jI9b0UG4TJbY3CXvKVTXBSyP3DHBh5eYEb1T wm7A== 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=Juk0mkJQGP8NvwISdsdgUqs3ZNeQZRgUfX5aWphyYacu4ov6oCWP4qGEddNyRQKi02 Nc9c+W/u806/BfRP244923o49WV8Doi+BNjY+vaqNpkB/Kc4f7Y4gJsBfk6WPlysJHZA DJc3nDiLykzKWqMF6fLh+LqHglr1xDxzYVY4iBbr3GjbHRaXfZAxRqzjBAVQij14A0mZ sQVmBA0HqUjPcTu2WMc4bl4DPTQuM75DFFIpXdz0Q0AtQFaoQkBCZY5SHNvOa/bCWCg0 D5qitKbhfOwxBFjIqGKDQWJCIgXe+8up30clS49sl/qoG5p3whjVK9tCEBCwZRFM0MmH udQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eKVqOuBe; 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 c69sor3160991pfc.14.2019.10.28.14.59.27 for (Google Transport Security); Mon, 28 Oct 2019 14:59:27 -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=eKVqOuBe; 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=eKVqOuBe2qG/OSWZsaD3gbQVQnORi6YUJToqthQFixtmU1bAKAXU6V1ldupWC6VvTw RsTMuqOIvs7Az8gxZhBzjgrhkGKRmX9qGZW+fIrHiDuDEeJLZMgyj+Yiz23bw9wfOREr 1gy4gtJ5MEfAGjn5SKvx5ks/STelDtQ4g6DKlAX9MLoSJ7+ETf+rl3nxipwO/X0YbJ04 kid2Lg+PjKbhGtco88Xw2DyknmmFVdZYVERdIKGLgbwv1F2AXXjq7WjmRyIVT9oJRoR5 I+dQGFLedmEvEqVeXZO4y+jfXBTe37AQds4D07d5UF/oXDarJbpUt6Jj34ERRyreJ5JA JttQ== 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=GdI5PVxkvfELez+O13+LAZb+R3/NkqQMm4EAm2+ePFqPqi12fkYML2YAaxrlkHzAT5 rDFORBLTaIv1idKYMJPhqi5jVmTRLZwM4/mB8ULZXEZk47ric4XnKpoutaiKLEqtggW8 DGh0n/72NmXudKKHG7XP3O8aNRHcG3CpDUCCQJFyd4I8vXwZdRD3oaOXkjFcBaVijlhP /qtPrMM0bSy04o1LzGuUFkK2gPf8Yrow85EzqQ7DgVSuQnvt9psPtTY2Ero7ql/8oQ5j s6EdQ/jlAmonMW0L6YxAGBVy9QFtmndYIHVGGPfFDyKQAT5B7/q8waV69WY/rynJVSys MN0g== X-Gm-Message-State: APjAAAUftBSsUJdeuOHXz4HNkLJYewZ3Orcs6UPG50YC7ntyKn5hOb9G zDrhwRttBtnRs7IjJxSHpxggwTs/ X-Google-Smtp-Source: APXvYqygibWkWPMAb7wZK/7S2yus1n7uqa1S6UdpudK6pIw6iG7qeF5t6FQaHX/vFB83z9Il5b0N2g== X-Received: by 2002:a63:67c3:: with SMTP id b186mr12427931pgc.152.1572299967053; Mon, 28 Oct 2019 14:59:27 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id f12sm10880612pfn.152.2019.10.28.14.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:59:26 -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: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller Date: Mon, 28 Oct 2019 21:59:13 +0000 Message-Id: <20191028215919.83697-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028215919.83697-1-john.stultz@linaro.org> References: <20191028215919.83697-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;