Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp360731pxf; Wed, 10 Mar 2021 07:50:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+f//wT9Utv/84KNSegJOwGtuRhkf0UPdYprr4old/BQC2zHtWL0wUR0Aj6++U38C+x91j X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr4405742ejb.477.1615391431608; Wed, 10 Mar 2021 07:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615391431; cv=none; d=google.com; s=arc-20160816; b=di3pf/8kZEdT4aebbSOgbiZe8MGeshVfcerYwkrWVx5VzNYXU/YZpy90MELAA1gZ4k kW8spBqV+WnMJ4pIVGCQ/pmV6tsz39hBibdGLTjySSFlroL1TClKpbYZq0MEG4XJIuH9 xnWwFTLrimolN4Nwy2kjaqyKVvt3teekcn8SRyBymLcExwL8LhN3vPQIOKaIA+6zeAQo njN8Hlbymq44+zmIjHfosVi7Ewysd5P/FMFmxIjL7nBuS1hIP9iVf/KXurERPrU3ejTi TQEFyGtjcYZs7tJ1FY6CTBa1rSm320AgSId6iE+klssBmxHYhWogEoKU1SWrdDLcp+O/ xfUw== 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=wFhbaNQ5e4jQ5TA/hPoGkQZHBHaNodRoSkovLbkQJMJuWWpjrwVlBKPefMeE6kSeqC 2EnbXIubijZYSSg1fx6mVdEcHAZpevYVbhLIdktlfzBQmpo99vpgOhtPO85KUVjOkcZe ycZOmT2suh2iHxo3WDoL+mXf/P1IqgIqZCZracbcIMxWTlcBGE9bdW1bwc4A6CbYC8tw 2ZSVObTPMjoWzCpQqMU6Qxw3aDgNg6dqWXhn0QA2TEAUP4NoRPt8R8yoPNm9S0fZ7uUz 1VemtOLgKz5tbI/VraLW4cUPj9QM0mWBxe6e/vY80FX1N/Jch+V4pnF0nYlEtrQ2MIet wqbw== 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 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=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 q18si11679627ejy.55.2021.03.10.07.50.08; Wed, 10 Mar 2021 07:50:31 -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=@ti.com header.s=ti-com-17Q1 header.b=t9NiFOqI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233299AbhCJPqu (ORCPT + 99 others); Wed, 10 Mar 2021 10:46:50 -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 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.17.1