From patchwork Thu Dec 24 11:16:20 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: 351892 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp6933221jai; Thu, 24 Dec 2020 03:19:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPhT8YRFFJv6X9KTtCPOjUz89eq1CKPhsSoKvMm92TzRanVN83K2/pDZCJew6LjkS4zpcz X-Received: by 2002:a17:907:20a6:: with SMTP id pw6mr28170241ejb.73.1608808745074; Thu, 24 Dec 2020 03:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608808745; cv=none; d=google.com; s=arc-20160816; b=W2nPECpUEVdUgUHhU/UQl66r3CUWO4DtqwNBaY0p1A6RyjpnsnMppwpPnTalKBZhs0 Ne/ZZGba12EymmkpXArYRZVMMuIMGSXh3ee+3PRUxGZrgG1ryPLb+SrKmx4k1vDYnNQo ihXQ8OpkOx7kRppS2+e01/JoEOfnpiVFnvPQYdmOMr+6i++gOq/vcKRYipxne6D48ZE5 8QzaN6iDqfZ35KR/NElCrgjpbovjMsx0BI0xsols3hGgFvtT40yIktmDcLGKfXtrqKPy +iAg3doNuRm06RhwZl20yTHfPndodMoljmV8v1+supKzyaYY+uqiqZvuSt9AMPOVzJHg fYeg== 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=g+cpdAoQtlZycxyEAIkoksnhuWgAw65p0RbaO7WQ76pqbcZnPnYxWMdwC2k+NrfVdA 13tvCKdmNiwDl0SuqVrSj6y6cFJdWwNhQumNxR+CjCQRy+NgScEUYDP3Yc0gGUUOthlh JSA5SJdIqOudosINqOVXVp/D1QNxyr4+ptr7KZePni70vqyfilu2LC37VhEuYfzelkgA shyClVXGp5uWmumt6npYtZac9Exf7MtskVcJbErcDYp+1yGS+3y4A//nDPPyZfyi1rNN HUMhXkS4gaOkABJjNAAub5OhZ4HbRnT93vbJXRgnmZvYEBVygZ3O2s8EBouoyJa8/9Pp nH7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s3WdSe+g; 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 c4si11409789ejk.182.2020.12.24.03.19.04; Thu, 24 Dec 2020 03:19:05 -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=s3WdSe+g; 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 S1728114AbgLXLTC (ORCPT + 7 others); Thu, 24 Dec 2020 06:19:02 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35668 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727759AbgLXLTC (ORCPT ); Thu, 24 Dec 2020 06:19:02 -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 0BOBHJjJ076204; Thu, 24 Dec 2020 05:17:19 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608808639; bh=X8lkmYvm2LZftzAI7MPmXYXTlNDPCOiWt9wiFwCLMFg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=s3WdSe+g8q4e8MUUczFGswhcSW4YYOEuehaKawKzB8TeTEImOzKn1fBn2ioFyItY0 cFgeljLBvVsN2oVXHL+Kw92gAaU97pdJYDtDCjUSr5/Z/bGL01hxzjs60J0UfFBZXG 4r05d+GvWqh3xP/A5tDHQYdZIMEAGWF4K9tXU8JQ= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BOBHJlw058539 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Dec 2020 05:17:19 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 24 Dec 2020 05:17:19 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) 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; Thu, 24 Dec 2020 05:17:19 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BOBGWGE116630; Thu, 24 Dec 2020 05:17:15 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Nishanth Menon , Philipp Zabel CC: , , Subject: [PATCH v3 08/15] phy: cadence: cadence-sierra: Explicitly request exclusive reset control Date: Thu, 24 Dec 2020 16:46:20 +0530 Message-ID: <20201224111627.32590-9-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201224111627.32590-1-kishon@ti.com> References: <20201224111627.32590-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);