Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1579451pxb; Mon, 8 Mar 2021 00:42:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJybkq4ZuUYw7VzW2CvKXRANi2A0sI/GwpubIyonETfde9XiC0RVxJsZglvLLC1RDQMzRu0r X-Received: by 2002:a17:906:b2c3:: with SMTP id cf3mr13494097ejb.133.1615192940484; Mon, 08 Mar 2021 00:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192940; cv=none; d=google.com; s=arc-20160816; b=mW3WNqQdu1zyf8bentm/p8DS/oum21XE9Kc3sQeLqWEZsEtr0xH1hRn9NQqneVki66 hrqpYVnEa44t+WQ01Q6ukTNKeOesqtH/48A0ous5hiaf+ziY5MK5tUlujkNKWn2/yJU1 gb6gvWp4ePD6vdndFggJ5T5Y0vCtMj1aHyw2HVCWLRjmMYzDKdBxB0CVX8tELOuP7OHx dMf/X766sbb41iPQYVaCQrnEigKgNi8uG7MyByoeJ6i4onC0RlPsxRgGJ1XZqQh+GmF+ T+HjGBtWYkhnemIGtO4hpg9xP+MUYXUXACWD8MAV6NTSz8CL9GQZsa2dPKghpEOgceR6 khCQ== 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=G+Y2c0+7QmuPiOfWj78MCdFiTUg1wi0NmPolOmLAH8CoL1xXs5zZB6+mF33r9R7r7t GkuQEzfxgblS1Bjg40XmnQJiJrT+MVZok3ZjBl8YWjt2TBWLCsZeTs/Fmz945LOlTgWR I3MOl8Ux8+x+n6Njbq5//aB7490FxPQSQQw3y2TrXnELWf7bY65FFdUU6XXtlqRzACDf eqd5+oyYwoFh6KAkWESdbCvPIAbn5EPLHl51hwpFtgiOcR85Ibx8F6LlCDPhqrWplbrV pyC3zzhtuhDrGe9s5Zpu0IgSlOjVpwwSUCLnRL7J7bE6JdLJdMvx0Mu/dbaeqdiBopSc JD0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PvNl8bYr; 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 g3si6625740edp.527.2021.03.08.00.41.58; Mon, 08 Mar 2021 00:42:20 -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=PvNl8bYr; 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 S234345AbhCHFIX (ORCPT + 99 others); Mon, 8 Mar 2021 00:08:23 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36308 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234277AbhCHFIM (ORCPT ); Mon, 8 Mar 2021 00:08:12 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 128587V3077248; Sun, 7 Mar 2021 23:08:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615180087; bh=TsbqIXJs6B38X8Auxf3dPsgKPxUh2cFtxGTPMXU1r1Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PvNl8bYrArU2Gfmx3pDFfnCh1TMxQeqMp/M4pgKducGmhVzlujoDxVuNAPy2QPpmu AmXnflDg+tW3qNEo6dmJ5r4sAxOgyfYO1vs4o2uTsJVKMZg+pAfsA0zIW9WcXL6bkE tkpI4sqlMzpHEhGXf8kA2y4vISThLvheYc9fPfy0= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 128587gs117135 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 7 Mar 2021 23:08:07 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Sun, 7 Mar 2021 23:08:07 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) 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; Sun, 7 Mar 2021 23:08:07 -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 12857aL5086547; Sun, 7 Mar 2021 23:08:04 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v5 07/13] phy: cadence: cadence-sierra: Explicitly request exclusive reset control Date: Mon, 8 Mar 2021 10:37:26 +0530 Message-ID: <20210308050732.7140-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210308050732.7140-1-kishon@ti.com> References: <20210308050732.7140-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