From patchwork Wed Mar 10 15:45:52 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: 396732 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp483340jai; Wed, 10 Mar 2021 07:47:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWaOjsLZOLnkeHVwb+ooJz1N9gEk485uKNq3VMzRLFrtX3iF+ty6pbifbODngEG3pQ0HKY X-Received: by 2002:a05:6402:1d19:: with SMTP id dg25mr4075870edb.218.1615391237854; Wed, 10 Mar 2021 07:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615391237; cv=none; d=google.com; s=arc-20160816; b=HuI0hlHMTYR0l4hGoW9nXSG7jk/7qFoJo4dz/gMgKdDXapOKG0P+udMEK3xI1o3P3L qcSGCCaT+II+uriuR42+09TQqI+q2TOSJEvlJ9yYt0gJtiys13RDdzdvlkwCTEf8gpnQ EeyfPirKsDrzOEDclPsShPCIfqqUh38TNpYNHKf7AkefxmMzUfa6+bYqyOUSCDj7vPeA nGCmaBqRZOMpMne2Mxjg48+vYQghJUEoNOAiHwZ5jPfqsINOcpkjnYET7OGVK7f4yhtZ wRhaL3wkVBJUwghAvf941wTXd1cU9zBPsL7wpccqUz7dHl6aUXKoxYKdSOq25QUNGw3f lYmg== 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=TsbqIXJs6B38X8Auxf3dPsgKPxUh2cFtxGTPMXU1r1Y=; b=fCYGdXtTURVWMEzTI0DBJkZjzgL7GRQztglJFRdpZZ3vGAh5NmcwyUyKKwj23GOoAg X4aQF7E1hprDuJRz7pqCpK5FHIuvEYWDrOEhRB3p32G6RmQqQMYnxAsFWgx7eJUtbt8Z PzRxqNzAQTJrK//FnTXDLNp11v7XeUkbskq9QJkmuBf8Ns1Fbsx+pHz9CfGUZdNeEIRc QEQ9l1nE/5kyZ0iQcuoy1mrgcT6AeSb1bV0c0hrZOzhG5gMiha81tBxSVyWarOnKfiPl 6/gTcJ7DcaSmqJ5rvqDvgS3edzpv154MEIY1nn0mbvLsoyNnf2Veu43EeK9OtrNdSE0w NRTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t9NiFOqI; 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 t3si4576077ejy.142.2021.03.10.07.47.17; Wed, 10 Mar 2021 07:47:17 -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=t9NiFOqI; 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 S233240AbhCJPqo (ORCPT + 6 others); Wed, 10 Mar 2021 10:46:44 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47768 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbhCJPqc (ORCPT ); Wed, 10 Mar 2021 10:46:32 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12AFkSB1067849; Wed, 10 Mar 2021 09:46:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615391188; bh=TsbqIXJs6B38X8Auxf3dPsgKPxUh2cFtxGTPMXU1r1Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t9NiFOqI27RHPnf8Wx84wbLaW//YiSwBHEJf7OffWCTapLrIEaQkaC8JEuU6zS69D iBEvruchhWL0sJIMMT/FAIqkAyJQ2jLEOq69roYUoAVvn3Rq2KMXgtpBKseDHcACCT AeXb/96pRIjXfpioe3u3qEYyfGUSHjljvh5Hvs1o= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12AFkSYa014983 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 09:46:28 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 10 Mar 2021 09:46:27 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 10 Mar 2021 09:46:27 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12AFk2KV066370; Wed, 10 Mar 2021 09:46:24 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v6 07/13] phy: cadence: cadence-sierra: Explicitly request exclusive reset control Date: Wed, 10 Mar 2021 21:15:52 +0530 Message-ID: <20210310154558.32078-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310154558.32078-1-kishon@ti.com> References: <20210310154558.32078-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 Reviewed-by: Philipp Zabel --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 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);