Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2906630pxb; Sun, 15 Nov 2020 23:36:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsSJfNybHl9n8hwuduzw4ylzvvwN+Cb4ULM+gerFtte8H1bgsbf728rAnWLpltXrIrLqQh X-Received: by 2002:a17:906:3953:: with SMTP id g19mr904228eje.151.1605512192097; Sun, 15 Nov 2020 23:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605512192; cv=none; d=google.com; s=arc-20160816; b=nnA/zvwOshx5HqBWqAJJsUbuagtax+xwSAU+crNHkMKNjcHZx4UzKTnCTDfdYC7bqz GVX0BnH30LeGvm+rhaxylrcoP1d6yiwX5/l4Mt6pP4zheH9pT0RJlnON7ko117sqAG/z efDbsjmYaIkl/m3nmYnjLnJwETrT4pWwGQiLtp6zBS9KLPU2juW9Ax/UziOAT9GDpA7l zsdDcvBBhTl1/rgNBOfqANgBN+S5jOYZALS6HleINhBZf/54zzihc8FRj3PYYB86m1Bi M2QeiV8PHF1LerZJ5l8vNQwkHnYJivzoBo52l/HG3X+U9IDPLfKu3clmU5Ays5i28frS BxdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OSKQEfyLrRWdOfG9geXgBQ33ohvCMdWO8qAxi/3F8I0=; b=TyEffhgR24THnnsoVU+po9OcTVP8S+IjTlrW3CqQyxKbJiQYrnGS671OCfue5a9uSu BTqsPwATavO9KogNIkmVfHopSWFYBmYwWz0mCGULAA2jt+QcQHc7tTds0d5mPpmTSrcK QGgVEDiQXyPZC8wnndNvZFwcsNFPJSYIJOLs7PCBgeHYF/gSyCqOm0XtOPFrd64Y7cx/ 477MBa4qC5hAnC1CEy2Nj9LBglm30eVC7Z+OpULGr30CZrn/II2vbmEwVqivpZITbBp+ SyNc6W8KhfJVTDNGWZTNk/fdWBy2Er2u5FizsMRiecJWfnHT9A635SfspCEzB1WMyVN0 ns4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PH6ao4hl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si10849998edi.344.2020.11.15.23.36.08; Sun, 15 Nov 2020 23:36:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PH6ao4hl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbgKPHco (ORCPT + 99 others); Mon, 16 Nov 2020 02:32:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:45560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgKPHco (ORCPT ); Mon, 16 Nov 2020 02:32:44 -0500 Received: from localhost (unknown [122.171.203.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA9DB2224F; Mon, 16 Nov 2020 07:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605511963; bh=gcJcac9u3R1uqW1nIhiT9WQ5y+7r3mBsbuZrSsKJHZw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PH6ao4hl3AOvati2msPnVVS3sXLrDHg2Tf5bztiBC1cXOZyub316no/Pq8e5KEJCh 4dKmuwQPoH3WZIfGcxlQmYKRZsbbqzQ1xpXX/C7gpt9TYo+uK4JP6gjxESQXaQZakJ hXdjdzD5k1Ter5p1zqwcc4Or0cSAfltZa0XD8tCw= Date: Mon, 16 Nov 2020 13:02:39 +0530 From: Vinod Koul To: Kishon Vijay Abraham I Cc: Rob Herring , Philipp Zabel , Swapnil Kashinath Jakhade , Milind Parab , Yuti Suresh Amonkar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 5/9] phy: cadence: Sierra: Fix PHY power_on sequence Message-ID: <20201116073239.GJ7499@vkoul-mobl> References: <20201103035556.21260-1-kishon@ti.com> <20201103035556.21260-6-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201103035556.21260-6-kishon@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-11-20, 09:25, Kishon Vijay Abraham I wrote: > Commit 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") > de-asserts PHY_RESET even before the configurations are loaded in > phy_init(). However PHY_RESET should be de-asserted only after > all the configurations has been initialized, instead of de-asserting > in probe. Fix it here. Move this up in series..? Also I think we should apply this to fixes and perhaps cc stable..? > > Fixes: 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") > Signed-off-by: Kishon Vijay Abraham I > --- > drivers/phy/cadence/phy-cadence-sierra.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c > index 4429f41a8f58..e08548417bce 100644 > --- a/drivers/phy/cadence/phy-cadence-sierra.c > +++ b/drivers/phy/cadence/phy-cadence-sierra.c > @@ -319,6 +319,12 @@ static int cdns_sierra_phy_on(struct phy *gphy) > u32 val; > int ret; > > + ret = reset_control_deassert(sp->phy_rst); > + if (ret) { > + dev_err(dev, "Failed to take the PHY out of reset\n"); > + return ret; > + } > + > /* Take the PHY lane group out of reset */ > ret = reset_control_deassert(ins->lnk_rst); > if (ret) { > @@ -621,7 +627,6 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev) > > pm_runtime_enable(dev); > phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); > - reset_control_deassert(sp->phy_rst); > return PTR_ERR_OR_ZERO(phy_provider); > > put_child: > -- > 2.17.1 -- ~Vinod