From patchwork Fri Oct 30 20:17:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 7529121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31C029F399 for ; Fri, 30 Oct 2015 20:20:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DA79207BB for ; Fri, 30 Oct 2015 20:20:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F255207B1 for ; Fri, 30 Oct 2015 20:20:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZsG8h-0002Ux-D2; Fri, 30 Oct 2015 20:19:07 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZsG8L-0002Ng-C3 for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2015 20:18:46 +0000 Received: by padhk11 with SMTP id hk11so83635290pad.1 for ; Fri, 30 Oct 2015 13:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=En2+Jqy7rVkR2ooRchtwJLEWPSj3ZdztZNF1bBXuQs0=; b=ivNDEGUcdFv5eJLuaOp8q2vzVi0SJPCSTIJ7mEw9I8I0fsiTix6VLuFHn4OK+AJtgm hLZCWeOz0X64ChO3BvmwOlakdPUcFju2YKdjWe2iqxhhrRTQZCOuvj57Azogzo/KZWdK p4ikFYhOWJKox8woKqRH7AjDBO6if+KMCfh98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=En2+Jqy7rVkR2ooRchtwJLEWPSj3ZdztZNF1bBXuQs0=; b=D9WA08KzySKjLOzwrcGg77bY4yVGyqeL7DF0HaQilJT+Ha7a6I3QmrAH351W9C3qZn hAQk+c7S42C6+vXWEMDW/xEJ8ASPB/XjyarwGJS3jH1148uMNJKadLhKVOe8RGewB6kL cGivgG5Y1E7Gpw1ScwxE9FOl8MZ9DIySDo/M+HNmocmMhT/4G4DN/v2Dgo3hZ9UkZx4E hYkRTXAqNcGslijpA4Yw/H6iEzyvyl5eJAQrXo+/yPjrIGLlzRPwJAE3rJgbt1GsF3TC fK7KUI2C4z2fLIRHvTXqzJ0vlszIkBfC8QefIUDB9A3I8Tc0KOHzXMz1gYAmk7GC5ZqG 2oMA== X-Gm-Message-State: ALoCoQmta1ylodidMYSi2pd0kBmcVPW/E9jGDWYtMToJ7ZOe9/LfgSMeEZWzN62mvHI3U2efWHeu X-Received: by 10.66.158.201 with SMTP id ww9mr10948525pab.33.1446236304787; Fri, 30 Oct 2015 13:18:24 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id ws6sm9777507pbc.33.2015.10.30.13.18.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 13:18:24 -0700 (PDT) From: Douglas Anderson To: johnyoun@synopsys.com, balbi@ti.com Subject: [PATCH v2 2/2] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset Date: Fri, 30 Oct 2015 13:17:54 -0700 Message-Id: <1446236275-12698-3-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1446236275-12698-1-git-send-email-dianders@chromium.org> References: <1446236275-12698-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151030_131845_461902_2B962DCE X-CRM114-Status: GOOD ( 12.61 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, heiko@sntech.de, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, gregkh@linuxfoundation.org, Doug Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, lyz@rock-chips.com, galak@codeaurora.org, wulf@rock-chips.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Doug Anderson The "host1" port (AKA the dwc2 port that isn't the OTG port) on rk3288 has a hardware errata that causes everything to get confused when we get a remote wakeup. We'll use the reset that's in the CRU to reset the port when it's in a bad state. Note that we add the reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Douglas Anderson --- Changes in v2: - Use a full PHY reset for safety; no PHY changes needed for that. arch/arm/boot/dts/rk3288.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 906e938fb6bf..58773beb283f 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -496,6 +496,9 @@ dr_mode = "host"; phys = <&usbphy2>; phy-names = "usb2-phy"; + resets = <&cru SRST_USBHOST1_PHY>; + reset-names = "phy-full-reset"; + snps,need-phy-full-reset-on-wake; status = "disabled"; }; @@ -513,6 +516,8 @@ g-use-dma; phys = <&usbphy0>; phy-names = "usb2-phy"; + resets = <&cru SRST_USBOTG_PHY>; + reset-names = "phy-full-reset"; status = "disabled"; };