Message ID | 1393357628-5248-1-git-send-email-balbi@ti.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRBFPHWOMAKGQEOOJJ2CY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 88A4820143 for <linaro@patches.linaro.org>; Tue, 25 Feb 2014 19:48:38 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id y6sf4174855igj.3 for <linaro@patches.linaro.org>; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=Yv/sGha/VhIYAy5wVN+hH4+4HBmT4yHyWfvEz+d4sP4=; b=eTfEG0HYJ2QUEInLdsVwSnssdWukKLFzuVUkEQW3+L5Y6uay0ztaohLmB5U7YpgpRf dZBPoDvU06eN8e+/O4K5ccMB6f7XTEoXOMEEiFyoY3irO3UO3tPyGAVXqZN9T4gFNBEW lG2FASenrbgNTjEDlZQFPiUHQ9AL+ns6n5I3oWTOvNtgHow8w5n394/3Kmh/yyleEMn6 cd66bM25W7idir/8/CEciz+ZuYfagO1Y6FH5hnRdmaWIJYHTC1myTFRU6L433E+wIFzd 4s25tjyeOmsycKHOZb56U+WESbBVSOpA0iAs5mfd+4yP4E/5DUJRpd8FkdvSkB8XIf+E PQqA== X-Gm-Message-State: ALoCoQnTJo3SgPyFxkzsAJMmZJxq5eAOEWJAvD7Bw1Afpm/JHl7lCSkp7s1uiZ1KfcfiR7wmvTu/ X-Received: by 10.182.158.4 with SMTP id wq4mr1502786obb.18.1393357717797; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.244 with SMTP id w107ls2642906qge.26.gmail; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-Received: by 10.220.103.141 with SMTP id k13mr2394151vco.25.1393357717641; Tue, 25 Feb 2014 11:48:37 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id tt2si7069258vdc.113.2014.02.25.11.48.37 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 11:48:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lg15so4185858vcb.12 for <patchwork-forward@linaro.org>; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-Received: by 10.52.27.9 with SMTP id p9mr2050384vdg.28.1393357717533; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp163458vcz; Tue, 25 Feb 2014 11:48:37 -0800 (PST) X-Received: by 10.68.197.99 with SMTP id it3mr1609002pbc.37.1393357716657; Tue, 25 Feb 2014 11:48:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id io5si4596022pbc.234.2014.02.25.11.48.36; Tue, 25 Feb 2014 11:48:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752653AbaBYTse (ORCPT <rfc822;patch@linaro.org> + 3 others); Tue, 25 Feb 2014 14:48:34 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:54093 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752522AbaBYTse (ORCPT <rfc822;linux-usb@vger.kernel.org>); Tue, 25 Feb 2014 14:48:34 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1PJmXUB029277 for <linux-usb@vger.kernel.org>; Tue, 25 Feb 2014 13:48:33 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJmXG1009923 for <linux-usb@vger.kernel.org>; Tue, 25 Feb 2014 13:48:33 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Feb 2014 13:48:33 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1PJmW4Q024340; Tue, 25 Feb 2014 13:48:33 -0600 From: Felipe Balbi <balbi@ti.com> To: Linux USB Mailing List <linux-usb@vger.kernel.org> CC: Felipe Balbi <balbi@ti.com> Subject: [PATCH v2 07/11] usb: dwc3: core: enable Suspend bit for USB2/3 PHYs Date: Tue, 25 Feb 2014 13:47:08 -0600 Message-ID: <1393357628-5248-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393357243-2958-8-git-send-email-balbi@ti.com> References: <1393357243-2958-8-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain |
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 2864aad..1cf1fb5 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -412,6 +412,16 @@ static int dwc3_core_init(struct dwc3 *dwc) dwc3_writel(dwc->regs, DWC3_GCTL, reg); + if (dwc->revision >= DWC3_REVISION_194A) { + reg = dwc3_readl(dwc->regs, DWC3_GUSB3PIPECTL(0)); + reg |= DWC3_GUSB3PIPECTL_SUSPHY; + dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(0), reg); + + reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); + reg |= DWC3_GUSB2PHYCFG_SUSPHY; + dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); + } + ret = dwc3_alloc_scratch_buffers(dwc); if (ret) goto err1;
That bit still needs to be set for recent versions of the IP. When necessary, IP will automatically take PHYs out of suspend. Signed-off-by: Felipe Balbi <balbi@ti.com> --- changes since v1: wrap code with revision check drivers/usb/dwc3/core.c | 10 ++++++++++ 1 file changed, 10 insertions(+)