Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4582230pxj; Wed, 12 May 2021 08:38:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoFo+JXPG0hz+KatnUK7Kr6TliKTUmo5hBUR2/Id9+Ndi61/g1todWjGN7sq9XurNjvrz7 X-Received: by 2002:a05:651c:1063:: with SMTP id y3mr29164634ljm.183.1620833915831; Wed, 12 May 2021 08:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833915; cv=none; d=google.com; s=arc-20160816; b=UUM62UtUIcc6FtBCPGeuD/yVpT38B7taj73R8SzvH4PF+FgzJGibETJQgrWYYK/ZMd +fQsOw+3zuOgs2XU0fOTVAiZvbSfiRQR3ARH8964Vunyo5Og0YwR4yI8fqIqaq+nEGda aayFvfPLYcklySkKKQ+L0BC75XP8Is/IOpma9NGq5CsWNUnn9xEIJ7Ifg90LG69mFp5I LywwyhROq6CBZHaUwjXIJYJkeZWMzDjcnwSbasBuEJ/6twjD9cjwin5yTe8YNNvhGhj6 DUcKmzREknWOhLz49NJoYSY+kHf2oCUu6Tpfc7egrsABrnq4gmEAYYXtojHETE78lOBN M/Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TvmhNJw6InGXYeLndAfCprD8B1e8hA7rf5qtPogzo6Q=; b=xiaoyOfKLsrwnBACsTe5rt5+I7VIk1sK9ZWPU5Ii8VDVFimVFE3+zO465iZHH17Ebo 9IKwaJLBmYzdQ0x7m+mQFIqdusTfsmVujk2dWLFEm/aREU680/fGVtvgEIlylrJQbvmW tQKfo2+/PyVh/fTD8x9X9Pk395gXGTlya/JbU5zRhDuquxVzL4WCtMbj1AUA+QGF1abe nb5dLxrCWd6hGlA++AJcRF9Unq/udiTKszt31Yx+lu75MyITC+I6pTg41MaBxzjXI67I Pb+OQyTB8vXz8BrG0bNB92xIBONOpgCTO7GkQpwU8crJfDBBNOSRO57ApATlwRaTF9W0 wT6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z157K9du; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si41006ljc.554.2021.05.12.08.38.05; Wed, 12 May 2021 08:38:35 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=z157K9du; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234749AbhELPeT (ORCPT + 99 others); Wed, 12 May 2021 11:34:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:49534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234109AbhELPQG (ORCPT ); Wed, 12 May 2021 11:16:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C04DD61942; Wed, 12 May 2021 15:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620831930; bh=ZZHdVgTIlgvZ+GJG/aumg33gMR9s8Z/7Keb7IkRXYZ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z157K9du+JSCDBEA0UzlcLy3wy/GApnePnsMsoqyJ+0JX7gGkLjpm25Qk0UGOzcS+ zToXLf5awvxtxRD7engbRdXIwCCkNBFhfQrqps+wrulLp5XwDYcrRwhiXadeIS2RyF /Bh/6hh7p2ofTEiObMFyBnNANDnbi6A9r4tFDRSI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Philipp Zabel , Vinod Koul Subject: [PATCH 5.10 038/530] phy: cadence: Sierra: Fix PHY power_on sequence Date: Wed, 12 May 2021 16:42:28 +0200 Message-Id: <20210512144820.995058594@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I commit 5b4f5757f83be34d1428a1ffbb68d4a1966e9aae upstream. 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. Fixes: 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") Signed-off-by: Kishon Vijay Abraham I Cc: # v5.4+ Reviewed-by: Philipp Zabel Link: https://lore.kernel.org/r/20210319124128.13308-2-kishon@ti.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/phy/cadence/phy-cadence-sierra.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- 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 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) { @@ -618,7 +624,6 @@ static int cdns_sierra_phy_probe(struct 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: