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: 7529091 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A2614BEEA4 for ; Fri, 30 Oct 2015 20:19:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C9322207BB for ; Fri, 30 Oct 2015 20:19:17 +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 BAC59207C0 for ; Fri, 30 Oct 2015 20:19:16 +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 1ZsG8q-0002Yb-9s; Fri, 30 Oct 2015 20:19:16 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZsG8L-0002Nf-DP for linux-rockchip@lists.infradead.org; Fri, 30 Oct 2015 20:18:46 +0000 Received: by padhk11 with SMTP id hk11so83635288pad.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=Ldzn1oKRLDQEMOGAFCBxaJntUI++yUg7Tr4W6s8dpJoo0JQrgYFcVYEiwGgINOc5WW F6cajz+TPeO50AuI3iB9fQNcVdC5vzcnHRThuJKtTP/1vdyxNdvNzn33FbddDtdXwbQe L5e+DjZ08q8SIl/+x6N0A8UbxW/sk6eD+zithhw1V+iSpkbGHkxubfGcXkwdyZpAjT3n f5bFDvVGaJO8kIQO3cvbBWFip2G4Isn2sSvjEJiJB2wK75IR57oZkRH5ZccjxWDkfT5u /BEDSpk1laQNptsRLCBzf9zXKW2e43EoVkoiltGGeXqySClQks0ZupMTSXGdV1X1pKHr NsTw== X-Gm-Message-State: ALoCoQlhpcKPYHAzJSP9OO8ey1gKv5VXiTDcyCUn5dndsXOX/bp6bd6UuoBqTYb1E47jFrmjRniC 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_620206_FA432061 X-CRM114-Status: GOOD ( 12.06 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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"; };