From patchwork Thu Mar 4 04:41:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 392731 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp348711jai; Thu, 4 Mar 2021 14:16:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWTUWlR124d+NAfTOAZZRyXK/xwRCr520b9OBREEXBhnXdMDuvTpnWqLc2WcOuTVzUqxtH X-Received: by 2002:a17:906:2344:: with SMTP id m4mr6394110eja.327.1614896193594; Thu, 04 Mar 2021 14:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614896193; cv=none; d=google.com; s=arc-20160816; b=XWpltnwVNCIgSMaSbA7t2Sb9POYjXuafuglbQEAOm3mRbyhvJqB2scLj2OGkuCA+nD nxoS7INUVrLR+M+5Ra88cEpeeirfT1E6JWZh5Prf6XRg6O1NNkLbh3FH/r0OhKqjTVKF 1jmYpq3qTPlt78PUz0dHlYXl2VIyXryo03z42ZOSYi3NgpkS/nc1ER78hhomWYB7dwO9 1ekt4i1rGCLlE8dsEkLRoM+yTGNTXrDa2bVPaT8dGAWE6hCys0WiEK56t59i8Kl9Q1Vc uBk+h48zK6WMgyYeOHCaDg+KXNkSvNsX19YS91jUyT008bRLfXl6d8iCzw2wIfKo4BIi 12BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=X8lkmYvm2LZftzAI7MPmXYXTlNDPCOiWt9wiFwCLMFg=; b=lMUfpvAg9lVLDPHCvq3pshqd++4aPaRswtyH74HpIf6bTC0fAS5FzEwwaTqX4wWDUL IzkgdIiCpA24WU67NzU/BK9CZTdN/FjUVKTEyYhSY3lff1awFa6Hm1z6HVqNErPx8vxu aYn1H/C474tETi0c0VyoWRKYK+C71Ari9GuO5+0WszQ7neD/QPTFW6mXQikxvAb4kVJv UigP25xmbtTKwFScqrWmm3u/LKRVHYar6t11UxmdnzcF2Pes3VkyRQurxCipnjx4jGU+ pt74cL50bFtR2p+A6aFW3DwXMrygDyd5ePzsa50dXEb4qktjLY254SM94eG7wVHkaAmN Tglg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pRdjO5KP; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si527757edj.545.2021.03.04.14.16.33; Thu, 04 Mar 2021 14:16:33 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=pRdjO5KP; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234077AbhCDEoI (ORCPT + 6 others); Wed, 3 Mar 2021 23:44:08 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36674 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233757AbhCDEne (ORCPT ); Wed, 3 Mar 2021 23:43:34 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1244ft6u101885; Wed, 3 Mar 2021 22:41:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1614832915; bh=X8lkmYvm2LZftzAI7MPmXYXTlNDPCOiWt9wiFwCLMFg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pRdjO5KPEHF8ppV53opfdqEHibqTcObpnt6+5WO46MHzwJeRSregGvBnaMelnCF6M 8rOE3r5Dl1kE4I53XRgCDlfZtsBUqkLfOyQKJk6Zf5kZzMZFMI3rAznbumsZRrdHS4 F6Bh1pyEwq4RWeZMfm88ad/AG1V7EvUT11TwoRhU= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1244ftvE088301 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Mar 2021 22:41:55 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 3 Mar 2021 22:41:55 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 3 Mar 2021 22:41:55 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1244fQfo042911; Wed, 3 Mar 2021 22:41:52 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v4 07/13] phy: cadence: cadence-sierra: Explicitly request exclusive reset control Date: Thu, 4 Mar 2021 10:11:16 +0530 Message-ID: <20210304044122.15166-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210304044122.15166-1-kishon@ti.com> References: <20210304044122.15166-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org No functional change. Since the reset controls obtained in Sierra is exclusively used by the Sierra device, use exclusive reset control request API calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Philipp Zabel diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 935f165404e4..44c52a0842dc 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -514,14 +514,14 @@ static int cdns_sierra_phy_get_resets(struct cdns_sierra_phy *sp, { struct reset_control *rst; - rst = devm_reset_control_get(dev, "sierra_reset"); + rst = devm_reset_control_get_exclusive(dev, "sierra_reset"); if (IS_ERR(rst)) { dev_err(dev, "failed to get reset\n"); return PTR_ERR(rst); } sp->phy_rst = rst; - rst = devm_reset_control_get_optional(dev, "sierra_apb"); + rst = devm_reset_control_get_optional_exclusive(dev, "sierra_apb"); if (IS_ERR(rst)) { dev_err(dev, "failed to get apb reset\n"); return PTR_ERR(rst);