Received: by 10.223.185.116 with SMTP id b49csp6154302wrg; Thu, 8 Mar 2018 02:45:02 -0800 (PST) X-Google-Smtp-Source: AG47ELu+iPUdFpbqFG2jjkRQuSDbQE4d5/KtLrdqkYT7wi64NWXED6+y7QDVmyxw4irwNOtj5BWz X-Received: by 10.99.116.22 with SMTP id p22mr21115933pgc.132.1520505902305; Thu, 08 Mar 2018 02:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520505902; cv=none; d=google.com; s=arc-20160816; b=FBEzak2OJdUFMlEVDWiWGzLZ9gUm0u5HLZ4FA9Ff6st/blhlbX3dS0fe/iPX/XmzJ1 0t64ukxTZepe4vyVXy0WoyigIRMQtverv7oNJJ87pVGP/yJK+hF55zD9a7ufprX5FPzd cka2qyO4CoJ/jNiSWrRelIJQUrppZpMccJYja4TBdvtxWsgwUO8HVXr9OChxTXRkCz5B Cr93UvqdA7HmHgtuD2k8KL81vOgxtfOxk6LrJY1g2cLdw+KEXHbdURRzPKmnRmXOxkuz 9aQ3KQT8y3tvTMlMq0wzqtyL247oLxSvJH1HKKvwBfZinfGhtygxq0g7FTf0tSHaRUzp dTCQ== 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=Jve9Wmh1skvNzoaITCrUiTg/YpTNoyPooWBqYg1BFmg=; b=Ax+rM8ZYJJWQfPAXQBVi1B1gQ/2SLYn5H87+mcOwTFCb69IjIa33dCwKLppaotggr/ yCeaNmfhGgMLHX9J5lasbbnO6p1a9hVpeQhetwneZSMwTrqKTI1w/G0JTk1INE3udgzo iIKPr7RnOnsbcHfdxvUuQ3pOzKF0damzecobcqigHRIBfHHtsOJSUdE91w1ubgyxZCyj EudNvsXI9k8ecI3frx972+0f9w4d+sjWp9943W9h4VEGn6yNv09PjCEMOjgx38Os/Xqz au1R5ob86UB2sHEEonv01VN/S8a9J+GTY1H62XW7XyYwD8HXNDHkJUPVbQ68lWAQrnM6 xBFA== 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 u128si12814485pgc.587.2018.03.08.02.44.47; Thu, 08 Mar 2018 02:45:02 -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 S935723AbeCHKnx (ORCPT + 99 others); Thu, 8 Mar 2018 05:43:53 -0500 Received: from mga07.intel.com ([134.134.136.100]:1644 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934902AbeCHKnv (ORCPT ); Thu, 8 Mar 2018 05:43:51 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2018 02:43:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,440,1515484800"; d="asc'?scan'208";a="36973008" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.68.37]) by orsmga001.jf.intel.com with ESMTP; 08 Mar 2018 02:43:46 -0800 From: Felipe Balbi To: William Wu , gregkh@linuxfoundation.org, Roger Quadros Cc: 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, william.wu@rock-chips.com, lin.huang@rock-chips.com Subject: Re: [PATCH] usb: dwc3: core: power on PHYs before initializing core In-Reply-To: <1515729616-8639-1-git-send-email-william.wu@rock-chips.com> References: <1515729616-8639-1-git-send-email-william.wu@rock-chips.com> Date: Thu, 08 Mar 2018 12:43:40 +0200 Message-ID: <87ina6vodf.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, 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? =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlqhE9wACgkQzL64meEa mQbo8xAAtDhCIfBTcs4q9JOVmKiY9BpJ/u7lRXkm5jgNkuUD/DXSFIDiJAXijoNk jVLw3sHf0HV+ba8EN8PM2TM18Ivv1K+ZFqQJOW06HKiE1xjrPlxoirWyxi97VdxM wX9I9rQR/V/8O6WwM/nWLFeXlyaF7O7sNO+08zntExtPWeOK4L4yCkvAvpsH3csk HfV4xGsnDKsU0rJ8xFo7TKOlB102f6NO5UL1kLowCLWSo8jRsnUDA7/NDpbl5yF7 sHmZbQmcBFCu2vzwdZqwxRIC+ziKjeWi/zbvTLH+8AH3fvDXtAY/0LAv1Um2ifrV Q7XBOXYyJCcGNFA/uMS27KhGUFkOoHK3WB5+aLqbc6z544h5ZKf3PDo0g2CgzjEo itkSrW/duxF7x/eXkn03JIuJN5X8UbTMsj6P9jdAw+NmKqnZZFQVYMtAAjK55q8o +vN9hGbjGhq8kfaPoSL8Lm0TSYIglNcS/HliAd7VlgVP64K2ETEwZhaq8l7+MUIK mScHu6KIFSkSq6BMBYm1GTILnXt8rVoTr5yPSmfPzki5V9W4Msa5HDZ35yoxHhFo oEs2InHTLBZMeC+Vv6w77v8xy0X7mSGdz/BaXoJAlPRj/PfbzgKenP3z7/KnKqOo YyMqKFnSKRpLFmUHGS2AscgnJhm5bQFAd5iRiJjq16FUmazeLJc= =QuP9 -----END PGP SIGNATURE----- --=-=-=--