Received: by 10.223.148.5 with SMTP id 5csp7779685wrq; Thu, 18 Jan 2018 09:22:42 -0800 (PST) X-Google-Smtp-Source: ACJfBovFH1Cafff38YMFnEXHA7Bfg4AGQ5yi+xNqo6tIEXYke79X8aJK5hrEj+/e+yWNrgtwIfqD X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr135534plc.384.1516296162025; Thu, 18 Jan 2018 09:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516296161; cv=none; d=google.com; s=arc-20160816; b=BpBtQkOzxKgHZR/W5NEqXgBqlerpLZw0BgvbmnUczfAMoqRxaPrfM6EeLaUq1hMgT/ krJCPpI6Gu32B0lni3nczEIKljvROE9zQW3t+RiE2Rw+NlJSoQk1teW7x5yU6mpotKLC idFCnVrFJugsVdN/qjeNaWcZfk2THp3FdDC+x/VKkLD1RcAq8KdqNHYhiM/yEcDqGI+w GLJpDq7MQiCKGNS6K6J7mVkKUIwPjb8EJTdN//iy6NWvuWJdX6sceNP2Ijnp4ApYbze/ iAYc37BvnZpX3fCXZ+5lvUl0ytHdO9S0r6sHVMe+knymQncf4xH1BSowq8okBrFKANvW yZEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mh6mYKuvU+S7pPd5I29wgQKfnmP7i0XCmcWM8nzkmps=; b=PjQu5znupO/YZye+zxJO7vUzRv7TQtcqqa4eRAcXSTbVyIW+S977Jmo+g01LxyauEq AFnYT0VsKhjWQlpeJe1Jm9XqPQ87p28oo309E1r386uKh+JzhOq8T2K+TDTvjCajnchc eyL6b5T1WiV0ebzvZwDy5brcqw4OwcdivpriFWmVyHNzGrfpFuLTKC+mrqklb69JePII gCvpZDGwHn7YSV0VHa+mFcsRc2/OINOZ16HsiDOI7w3G2bavhY+1IUygBfxAxGksurH5 FHTLeXMfXPrOhMhAtlbtT1pDPH9zgOasazOU8gVDFxuKjEBAUqbzJqGUadh2sZMjO1kM xfmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CcgFCZaz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi5-v6si53200plb.232.2018.01.18.09.22.26; Thu, 18 Jan 2018 09:22:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CcgFCZaz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932348AbeARRUN (ORCPT + 99 others); Thu, 18 Jan 2018 12:20:13 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:35242 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeARRUL (ORCPT ); Thu, 18 Jan 2018 12:20:11 -0500 Received: by mail-qt0-f195.google.com with SMTP id u10so32058889qtg.2; Thu, 18 Jan 2018 09:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mh6mYKuvU+S7pPd5I29wgQKfnmP7i0XCmcWM8nzkmps=; b=CcgFCZazCr+OKHnCq2b4PJZOzyxTJjhkVnjm7IcNXSN7MUE8Az0Y4AU9JPD6KARIXq i/si4z0aNGV5jmkqVwweX7zgeN99qPmXGtphiyhvgDtqPOsKa6VO8rjz09A/kc83PpL1 eUkyVqK06ki7pw7x8ZPx2GpFicUTWg3FfEIi91KmJJAChzuOGXHzMKz1cMQWsoyg3St/ 10sEPUrL4i8C5fWhllLbTh4T9qWds25Vm8fhni6E3jRpPwednFxaAvyJxlqFBHSuSPgD XgVUSNtEERBXidcxB9BOKpIz0xWvDbq0ULiVzap7AJy6TPp+r5qhANMW0gigQsz/FRaO hG6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mh6mYKuvU+S7pPd5I29wgQKfnmP7i0XCmcWM8nzkmps=; b=uSC4utmgQD9ziU+J2W3TAiSYfCRObi8V+FmX+nhGRdUszd5r46ZbuLo/khW47aiOPC tNGifwWB+FR6x2MFKLXpa3ZoZBSSASY7fyDKJ/EAJ/NIk4twELkw3H84qoa2nmsfUfVG QcZ+L3kWi86KxlaqRFnEWYZqzka2lzvnbhqp09wmDOn51XCL4VNf90cO2Ft8geunKW9M OgTfxV5JBERdM58SFesV4uqNof9sGfc7DXHzTPsgBPKTxQmAVxHdaU8bsnDd+yaVOtEh fbrSbfK49D1d5wJhJsPzNId6pjNoQI9uQrsu5s2SiJ3HmkSomg3UEjVq6o5ipMA/qdio NBkw== X-Gm-Message-State: AKwxyte0C8x9oj/+zeMy5We+OY5DMh9Tc7ohTRTrLY570N+B+0VJLrPF LazVdKeTp6dZXOcKIMAj2YclieuUoRee2BYOV6E= X-Received: by 10.200.24.100 with SMTP id n33mr49757897qtk.241.1516296009937; Thu, 18 Jan 2018 09:20:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.26.27 with HTTP; Thu, 18 Jan 2018 09:20:09 -0800 (PST) In-Reply-To: <20180117220715.GA112833@google.com> References: <1515751704-13213-1-git-send-email-william.wu@rock-chips.com> <1515751704-13213-2-git-send-email-william.wu@rock-chips.com> <20180117220715.GA112833@google.com> From: Enric Balletbo Serra Date: Thu, 18 Jan 2018 18:20:09 +0100 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: phy: phy-rockchip-typec: add usb3 otg reset To: Brian Norris Cc: William Wu , Kishon Vijay Abraham I , Rob Herring , =?UTF-8?Q?Heiko_St=C3=BCbner?= , linux-kernel , "open list:ARM/Rockchip SoC..." , Linux ARM , "devicetree@vger.kernel.org" , Frank Wang , huangtao@rock-chips.com, Doug Anderson , Guenter Roeck , daniel.meng@rock-chips.com, John.Youn@synopsys.com, lin.huang@rock-chips.com, Enric Balletbo i Serra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-01-17 23:07 GMT+01:00 Brian Norris : > + Enric > > On Fri, Jan 12, 2018 at 06:08:22PM +0800, William Wu wrote: >> This patch adds USB3 OTG reset property for rk3399 Type-C PHY >> to hold the USB3 controller in reset state. >> >> Signed-off-by: William Wu >> --- > > I was going back and forth on this, since at one point this binding was > merged but had no enabled users...but now I see Heiko has queued up some > of Enric's work for 4.16, and it uses the existing binding. > > So, if this reset is added, it should be optional. > As Brian said commit 06c47e6286d5 'usb: dwc3: of-simple: Add support to get resets for the device' introduced the support to get the resets from dwc3-of-simple and the queued commit 'b7e63d95c14d arm64: dts: rockchip: add reset property for dwc3 controllers on rk3399' started using it. Without the latest I get errors like this doing bind/unbind tests. dwc3: probe of fe900000.dwc3 failed with error -110 I just tested these series on top of mainline, I reverted my patch because otherwise two drivers are requesting the same reset and fails, and I did some of the bind/unbind test. They just worked fine, and seems that this is right way, so this makes me think some questions. Should 'b7e63d95c14d arm64: dts: rockchip: add reset property for dwc3 controllers on rk3399' removed for 4.16? That's a question for Heiko I guess, if it's removed we will have usb broken meanwhile these patches doesn't land. If we don't remove the patch we will need to introduce a new patch in this series that reverts the first patch. Is commit 06c47e6286d5 'usb: dwc3: of-simple: Add support to get resets for the device' really needed ? Seems that I was the only user of it. Anyway, these patches looks good to me and are Tested-by: Enric Balletbo i Serra > Brian > >> Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 12 +++++++----- >> 1 file changed, 7 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt >> index 6ea867e..db2902e 100644 >> --- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt >> +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt >> @@ -13,7 +13,7 @@ Required properties: >> - assigned-clock-rates : the phy core clk frequency, shall be: 50000000 >> - resets : a list of phandle + reset specifier pairs >> - reset-names : string reset name, must be: >> - "uphy", "uphy-pipe", "uphy-tcphy" >> + "uphy", "uphy-pipe", "uphy-tcphy", "usb3-otg" >> - extcon : extcon specifier for the Power Delivery >> >> Note, there are 2 type-c phys for RK3399, and they are almost identical, except >> @@ -56,8 +56,9 @@ Example: >> assigned-clock-rates = <50000000>; >> resets = <&cru SRST_UPHY0>, >> <&cru SRST_UPHY0_PIPE_L00>, >> - <&cru SRST_P_UPHY0_TCPHY>; >> - reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; >> + <&cru SRST_P_UPHY0_TCPHY>, >> + <&cru SRST_A_USB3_OTG0>; >> + reset-names = "uphy", "uphy-pipe", "uphy-tcphy", "usb3-otg"; >> rockchip,typec-conn-dir = <0xe580 0 16>; >> rockchip,usb3tousb2-en = <0xe580 3 19>; >> rockchip,external-psm = <0xe588 14 30>; >> @@ -84,8 +85,9 @@ Example: >> assigned-clock-rates = <50000000>; >> resets = <&cru SRST_UPHY1>, >> <&cru SRST_UPHY1_PIPE_L00>, >> - <&cru SRST_P_UPHY1_TCPHY>; >> - reset-names = "uphy", "uphy-pipe", "uphy-tcphy"; >> + <&cru SRST_P_UPHY1_TCPHY>, >> + <&cru SRST_A_USB3_OTG1>; >> + reset-names = "uphy", "uphy-pipe", "uphy-tcphy", "usb3-otg"; >> rockchip,typec-conn-dir = <0xe58c 0 16>; >> rockchip,usb3tousb2-en = <0xe58c 3 19>; >> rockchip,external-psm = <0xe594 14 30>; >> -- >> 2.0.0 >> >>