From patchwork Fri Oct 23 18:28:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 7475821 Return-Path: X-Original-To: patchwork-linux-arm@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 A505BBEEA4 for ; Fri, 23 Oct 2015 18:31:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86D642041F for ; Fri, 23 Oct 2015 18:31:03 +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 AC7F620930 for ; Fri, 23 Oct 2015 18:31:02 +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 1Zph5v-0003mN-K1; Fri, 23 Oct 2015 18:29:39 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zph5F-0003Mr-QF for linux-arm-kernel@lists.infradead.org; Fri, 23 Oct 2015 18:28:59 +0000 Received: by pasz6 with SMTP id z6so124687426pas.2 for ; Fri, 23 Oct 2015 11:28:37 -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=/UMfqQnS4LF3xXrwmIe8LwZW8VExwlxFfnPNEbIYKzI=; b=BH6AuNbw6bFRsMVxU/pHJqLpR7QXAt7EE4QkIEyfYQvJn30ecueLIMQMHZv5/GXulO A8JRCUkVhYUkO3uqt/lTFy9bbNWc9qWo+BzIwi8R0mOyjhnz3hPpHW1h5QH5QwMcCDSn +NI/c7CBb5Uo+orha28gTXVTLhqSVyKMmJJqY= 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=/UMfqQnS4LF3xXrwmIe8LwZW8VExwlxFfnPNEbIYKzI=; b=j9WRttCpl4EjNipd64kmSB+D8sm4eqhVr6C4nP/WqSY97IjXwXkEpZ3q5GLes0L7bA FyydSV1bols589pzztc5EXJIJfFNrvCu2vokkZXkFJwV7Z9Tu8D93nNfrxtI633pHh6r zoZzKd8D82AsuJUgoWCIKT3D3KXE6vHuY5bHagdN9TZ+/kcN7v6Lch8UuDkOxFWCb90r jt9uIYXkhm/WuMieOBal3xuzvPMee1PN3dbdy4UyCcSfKQ8sjjLMyLArVpj8zO0tcF9N dA6V/A/RgsFJojLR5x6BKLG1Q9XgTyYHbnaKRbQp0xSPYm7503uvoVmhpF4GZl8XjlAB uSSw== X-Gm-Message-State: ALoCoQkqK/HzfOaoZq0Fr4Ws+LMTU/xjgoNwpsx2l72D4eOmHQpMW20jvSClVlqRDvif3O+dc/aP X-Received: by 10.68.228.200 with SMTP id sk8mr6636163pbc.115.1445624917047; Fri, 23 Oct 2015 11:28:37 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id qv5sm20175531pbc.71.2015.10.23.11.28.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Oct 2015 11:28:36 -0700 (PDT) From: Douglas Anderson To: heiko@sntech.de, kishon@ti.com, johnyoun@synopsys.com, balbi@ti.com Subject: [PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at phy port reset Date: Fri, 23 Oct 2015 11:28:11 -0700 Message-Id: <1445624891-31680-5-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1445624891-31680-1-git-send-email-dianders@chromium.org> References: <1445624891-31680-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151023_112858_023507_2E8B6E07 X-CRM114-Status: GOOD ( 11.50 ) 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, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, gregkh@linuxfoundation.org, Douglas 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=-4.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 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. It appears that the "port reset" bit that's in the USB phy (located in the rk3288 GRF) fixes things up and appears safe to do. We recently added code to the PHY to expose this reset and code to dwc2 to use it, so now let's hook things up. Note that we add the PHY port 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 --- 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 4f76805..03de41d 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 = <&usbphy2>; + reset-names = "phy-port-reset"; + snps,need-phy-port-reset-on-wake; status = "disabled"; }; @@ -513,6 +516,8 @@ g-use-dma; phys = <&usbphy0>; phy-names = "usb2-phy"; + resets = <&usbphy0>; + reset-names = "phy-port-reset"; status = "disabled"; };