From patchwork Tue Dec 22 07:05:14 2020 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: 346616 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5095934jai; Mon, 21 Dec 2020 23:08:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRxC2uCnjxuGopRL9nvpH6TMqTaoAaHjAT20GCQy+FGb4YkbtBrvqPi0s7OyZTv2vu3jMP X-Received: by 2002:a17:906:3a98:: with SMTP id y24mr17903529ejd.436.1608620886567; Mon, 21 Dec 2020 23:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608620886; cv=none; d=google.com; s=arc-20160816; b=SJqSdEvEWs2L4JTYTNPcLGy6dtKfE7jGHazPpEH00i7fVvt+Py57DE+iEIXIbjk/mD WlZvzm5OuUb8eYZtqv6/X+JfSEHQVArKhcoMLQCy5ZE7j4VJ7NqtdhyVl62LL5rjQe9z gk+qKPj3JiGAjKPeIisUcGxkZtFnzMRwRFUQEgP9OaVzJIzTpOZbBpTJ+3L71n3wvZem ubToJmtcxfc4FyfuR6Qnp2qq50JSxV2phBxBPsXyPq5k8vqfi50+L8CfS1S63ONV84U4 x/nk+wo5ieOFiMXm0o9EcqeXjvULV5B8fmIN/1OpeYh/ezZ/zIf/BJpvGk+PRwQBhQ0X RyUw== 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=uyeuYEm/A9riv6Pfn5OFUvGEyKWNrgecw6lPXfIIoXS4Vvic8cht7INgK03jR7QE3q SHiAadpHPm0HIi5FPqYNFqdsV3cmLf/cF6yQGK+oETuYADQawvQvls4NH15ai5np6pxp hNjvuFLLldUtRtSLKvn1qB0YvCOekNQ9KS1hN/uMDIllBC25lAwrinGBIZ7d9hGwaK0A rq0UvK1RuBziNU7N4B6npdADWCyvLcQ/K/VvCWl2l85pWHaTuZUUfR4FyAyVWBwFTrY2 NeLb9GIgz2t1MDuZAdlkt3rVL33Z1iBuh0XJRvmeGJoFaf83FMvk85+JxBrYOf8htake /1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fey6bN9G; 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 h4si1408831edf.490.2020.12.21.23.08.06; Mon, 21 Dec 2020 23:08:06 -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=fey6bN9G; 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 S1726475AbgLVHHk (ORCPT + 7 others); Tue, 22 Dec 2020 02:07:40 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53976 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbgLVHHk (ORCPT ); Tue, 22 Dec 2020 02:07:40 -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 0BM75tGf064224; Tue, 22 Dec 2020 01:05:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608620755; bh=X8lkmYvm2LZftzAI7MPmXYXTlNDPCOiWt9wiFwCLMFg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fey6bN9GtobHp/NOeYNcQxDAjUzJ15shw9M+VGi+fgL1s4A/Wbfw3bXFkpkM7yi5J 9E3nUC63kgZPawZrg782x/47vhn15TdWhCONRqFSahusKtc8QT4pjgFyf/RsAh4XlD VKwXbOPEx1vDPcVlzoltuhvu6tn9J26ikrx4BOOM= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BM75tQB108814 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Dec 2020 01:05:55 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 22 Dec 2020 01:05:55 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) 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; Tue, 22 Dec 2020 01:05:55 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BM75N7H050344; Tue, 22 Dec 2020 01:05:52 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Swapnil Jakhade , , , CC: Nishanth Menon , Philipp Zabel Subject: [PATCH v2 08/14] phy: cadence: cadence-sierra: Explicitly request exclusive reset control Date: Tue, 22 Dec 2020 12:35:14 +0530 Message-ID: <20201222070520.28132-9-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201222070520.28132-1-kishon@ti.com> References: <20201222070520.28132-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 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);