Received: by 10.223.185.111 with SMTP id b44csp68695wrg; Fri, 9 Mar 2018 01:03:53 -0800 (PST) X-Google-Smtp-Source: AG47ELvlALtkT84gg+Rwjys2Wiy84MwDkeWcogEo8me0w2cwTPpDFel4h/c5IvsgUacRPqJk1J4b X-Received: by 10.98.90.196 with SMTP id o187mr28069974pfb.170.1520586233355; Fri, 09 Mar 2018 01:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520586233; cv=none; d=google.com; s=arc-20160816; b=g8seLS0Uty3AZHE+H45aFQ2xkRxW5QekLK+yjD71kSpxkyim6/E6eNF/gsqBmRC/m2 dMOAJSvtLNWzE5D9biHGfF+EfJKAtUp61/Sn3aJrihmufoh1F7lCMxRUKdqEkPmnAyrh 08BTC4nqfMF3U/k/RXD0F9ZgeOcV5oGJqnNTbfJOyQnDQa19nMVpHuN2oz/S7epRdUTZ Hx5SK9dsBEYqSKOxdI3TD+g17gPOxbXzmfgqMQEe8IKYd+3MVlI/avTjQmShHJygrVIx p+xaWwwSqDmETUicxLXrAklzmWfE4778U6+3KE4nJAkwzst7E1HcNX+oyXA8cOD7IjR6 1mog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=TYovOv1CRKMeEZ5y4j8qO0oohMed+hIC/oFNi1A8/3E=; b=bjrz0Yq2qzkjZ+0DyCdfkXJHMvsKZq+21asau5GtzLW+whGgO8z3IkfSDt86uAa75/ oC1ZvczZGg/Afx/DA7eAT8ZhfEtovnVGYrth351RTss6Ymb/mbFy3TzRlWWmVK7vvgqZ KZSRH1NntKQlUNUuc8naeJrWvFrPudwY6nucLZpiAsIrcnXoFJNYq/y5JYFE89dw6Pf8 3+/HkgG6FZg+0d4dmBhVecP4fSuBBDRm6QeWKW1muYamQ54Nnl/gAJumiDQnumAjgST7 A473gREhOyM++qv5ZYvsNCr1hAEFTHoPovlg7OE5MbgzeHjphceodFUIAP9vHaP+aYC3 ldqw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si445959pge.465.2018.03.09.01.03.38; Fri, 09 Mar 2018 01:03:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbeCIJBb (ORCPT + 99 others); Fri, 9 Mar 2018 04:01:31 -0500 Received: from mga02.intel.com ([134.134.136.20]:34852 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114AbeCIJBa (ORCPT ); Fri, 9 Mar 2018 04:01:30 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2018 01:01:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,444,1515484800"; d="asc'?scan'208";a="36757032" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.68.37]) by fmsmga001.fm.intel.com with ESMTP; 09 Mar 2018 01:01:24 -0800 From: Felipe Balbi To: Roger Quadros , Brian Norris Cc: William Wu , gregkh@linuxfoundation.org, heiko@sntech.de, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-rockchip@lists.infradead.org, frank.wang@rock-chips.com, huangtao@rock-chips.com, dianders@google.com, briannorris@google.com, groeck@google.com, daniel.meng@rock-chips.com, John.Youn@synopsys.com, lin.huang@rock-chips.com Subject: Re: [PATCH] usb: dwc3: core: power on PHYs before initializing core In-Reply-To: References: <1515729616-8639-1-git-send-email-william.wu@rock-chips.com> <87ina6vodf.fsf@linux.intel.com> <20180308164916.GA65031@rodete-desktop-imager.corp.google.com> Date: Fri, 09 Mar 2018 11:01:17 +0200 Message-ID: <871sgtbp2a.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Roger Quadros writes: > Hi, > > On 08/03/18 18:49, Brian Norris wrote: >> Hi, >>=20 >> On Thu, Mar 08, 2018 at 12:43:40PM +0200, Felipe Balbi wrote: >>> William Wu writes: >>>> The dwc3_core_init() gets the PHYs and initializes the PHYs with >>>> the usb_phy_init() and phy_init() functions before initializing >>>> core, and power on the PHYs after core initialization is done. >>>> >>>> However, some platforms (e.g. Rockchip RK3399 DWC3 with Type-C >>>> USB3 PHY), it needs to do some special operation while power on >>>> the Type-C PHY before initializing DWC3 core. It's because that >>>> the RK3399 Type-C PHY requires to hold the DWC3 controller in >>>> reset state to keep the PIPE power state in P2 while configuring >>>> the Type-C PHY, otherwise, it may cause waiting for the PIPE ready >>>> timeout. In this case, if we power on the PHYs after the DWC3 core >>>> initialization is done, the core will be reset to uninitialized >>>> state after power on the PHYs. >>>> >>>> Fix this by powering on the PHYs before initializing core. And >>>> because the GUID register may also be reset in this case, so we >>>> need to configure the GUID register after powering on the PHYs. >>>> >>>> Signed-off-by: William Wu >>> >>> does this cause any regressions for your boards? >>=20 >> I'm not Roger, but I believe it was determined we don't need this for >> the Rockchip systems for which William was originally sending this. At >> least not right now. I believe our PHY init problems were mostly >> resolved in other ways. >>=20 >> (Although I hear USB is currently pretty broken around suspend/resume >> for us on -next. Likely unrelated.) >>=20 >> I guess we never clearly replied stating the above. I hope this isn't >> merged anywhere? Or I guess it's no problem to me at the moment, but it >> might be needless churn. >>=20 > > I did some quick tests on TI platforms and didn't see any issues with thi= s patch. > Since this patch isn't really fixing your problem and we didn't have any > problems to start with I'd suggest to avoid this churn for now. fair enough, I won't apply it :-) =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlqiTV0ACgkQzL64meEa mQYAbBAAq6DNTsVhFehYtxLSararzyR1Bl7Jmm7fW7a5WRQL6oymcPBUIxqkNZeW HKzeSPXSKptZamTwbTsy6f0O5KgZ+InB+/BpffoBMz4+H2m+od4n/QJJy1NRLF7v 9kvcX6vmfl+2qnEUTXZA3iuq5Ke7IXUsOiZbr54GnLdRLDP+Pc0G6figfpW/d8cA XkJAxajTnxYhhm/TBF+v/tihfMTyJtNYRp1Z/YZcyGNAAy12mB/XA5bP8YDdn9Rz Jse5StIviEGb/hKNd6S+myzv69tixXqFbyqSd2mG4ZgBOKxNg6IUHvU9sfc2xw/9 /K+pmceXwDUNOBJsICp6Akwq4jRqYNEVCfdRaMMvFTEHDm70LwkVCnC8XwFZpQ1k KHL0/YnOBJH8L/hrinG6GoraURUstt8B/1EgVdnry7kYr952F1gDN+OgccI8PyiZ 8Jqy6ec4IS+wHmpVVsninE634t9iuYKqUt/OpdsXHIhGfMRqPRy+F0M3qbAkY6/J M0TZGgIWMtxG4AsBdGK+MJUk31s4jwIO7mHRIMoXFBXTEoy57V5Ir5vAZVZKWwHW 2izw8+thTpw6UWJ79aFMd8GmeRIuzbCpWujK1aFj3x/fBxPE/aiTGfOzbmgZvUBy r7lke7ehQz3y8b0dRMuRudfm6qCg+Ew1EX6uUDvF/y7Vw1bfo9w= =VnTN -----END PGP SIGNATURE----- --=-=-=--