From patchwork Thu Nov 6 17:36:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 40363 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F0CC824237 for ; Thu, 6 Nov 2014 17:36:10 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf980361wiv.5 for ; Thu, 06 Nov 2014 09:36:10 -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 :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=u9rSlyanzk78dth762dcno6VCneDnkt4CkMD1vLZ0i4=; b=PoR2VLA4lhlFoW56rSnWo0VfqUNQYZ4llCczaYOBV4EnfpYhiDyO5qCrI1ser2Ckc1 C820wKgVZJuIUr14iYSO5+WxttPj5AjkbS+O680w5FislUsOLmZH8RCzs5L2cvv+y/VY F17j0y6rV/8Qnhrx5tMprbx95PENgtkxIYvhZ1tdjIHbpmKLLSiro3rS5hmX3jIs5s+O qpLVu+zkGr3hN+TX4o8AwD08sa1aSIhLWF3msBKY/SY+jGpG/DmG7HVVQ8kXYLP+Mimm YtNroUut1wRxLFvKBF2AYFvvxJXyKaaGeO86F1UGHY86+gvRAIz1HV+qKch5WEPnNo7z 5tNQ== X-Gm-Message-State: ALoCoQl+tactOsf41RjgOV+shjy4Bl4IyRctkicDLb0bHqD7vpMBo1ncSk07pVkfFSQhTxFRdo/Z X-Received: by 10.194.86.66 with SMTP id n2mr18103wjz.7.1415295368832; Thu, 06 Nov 2014 09:36:08 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.68 with SMTP id da4ls96516lad.87.gmail; Thu, 06 Nov 2014 09:36:08 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr6320779lbc.23.1415295368626; Thu, 06 Nov 2014 09:36:08 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id ui10si12222442lbb.62.2014.11.06.09.36.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 09:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id z12so1341317lbi.1 for ; Thu, 06 Nov 2014 09:36:08 -0800 (PST) X-Received: by 10.112.77.74 with SMTP id q10mr6386309lbw.66.1415295368205; Thu, 06 Nov 2014 09:36:08 -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.112.184.201 with SMTP id ew9csp80898lbc; Thu, 6 Nov 2014 09:36:06 -0800 (PST) X-Received: by 10.70.34.44 with SMTP id w12mr5725241pdi.151.1415295366046; Thu, 06 Nov 2014 09:36:06 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zk5si6577999pbc.24.2014.11.06.09.36.05 for ; Thu, 06 Nov 2014 09:36:06 -0800 (PST) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbaKFRgC (ORCPT + 5 others); Thu, 6 Nov 2014 12:36:02 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:58305 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbaKFRf6 (ORCPT ); Thu, 6 Nov 2014 12:35:58 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id sA6HZYWH000782; Thu, 6 Nov 2014 11:35:34 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA6HZY61025611; Thu, 6 Nov 2014 11:35:34 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Thu, 6 Nov 2014 11:35:34 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA6HZXuw024867; Thu, 6 Nov 2014 11:35:34 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: Linux OMAP Mailing List , Tony Lindgren , Linux ARM Kernel Mailing List , Felipe Balbi Subject: [PATCH 1/2] usb: dwc3: core: enable phy suspend quirk on non-FPGA Date: Thu, 6 Nov 2014 11:36:05 -0600 Message-ID: <1415295366-593-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) 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: , List-Help: , List-Archive: List-Unsubscribe: , as it turns out, at least AM437x silicon (non-FPGA) needs to enable PHY suspend quirk. So let's allow for PHY suspend quirk to be used with non-FPGA builds too. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 8ae42b8..25ddc39 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -404,7 +404,7 @@ static void dwc3_phy_setup(struct dwc3 *dwc) if (dwc->tx_de_emphasis_quirk) reg |= DWC3_GUSB3PIPECTL_TX_DEEPH(dwc->tx_de_emphasis); - if (dwc->dis_u3_susphy_quirk && dwc->is_fpga) + if (dwc->dis_u3_susphy_quirk) reg &= ~DWC3_GUSB3PIPECTL_SUSPHY; dwc3_writel(dwc->regs, DWC3_GUSB3PIPECTL(0), reg); @@ -422,7 +422,7 @@ static void dwc3_phy_setup(struct dwc3 *dwc) if (dwc->revision > DWC3_REVISION_194A) reg |= DWC3_GUSB2PHYCFG_SUSPHY; - if (dwc->dis_u2_susphy_quirk && dwc->is_fpga) + if (dwc->dis_u2_susphy_quirk) reg &= ~DWC3_GUSB2PHYCFG_SUSPHY; dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg);