From patchwork Mon Mar 8 05:07:26 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: 395333 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1421909jai; Sun, 7 Mar 2021 21:08:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvIf0/w7eDKZUtwC2flOI1ucFDAsGFPw78cN2tZJPjry4XxTnZktyX5J0P6INsGR7004dQ X-Received: by 2002:a17:906:4705:: with SMTP id y5mr13596573ejq.119.1615180134616; Sun, 07 Mar 2021 21:08:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615180134; cv=none; d=google.com; s=arc-20160816; b=kj/52ngYovhW9yG2ERl7sTg5Ib0PpYdTgcb9Imb7HWMRbyHDmlbULqn70e6NEdTTIy opIToZwVGn4LbdQi2V0Q3nAZZRGrcr36Vju+aV0aIbAGWoYfsy5aANH5AvNSk7TNcqHO gh8I1XqqOOD7m+7yabXVfBzxIE92zEIIiWzDQTendfHCd/DLm3rymq82DWMeT1vutrZs occ/3bG7HxRmJfyfnmYYEgwqRjVgaGYbg2e/HDMr3NJL4qxnK6Suka5r+14XZTetGwRR TxgwI1sTBGtrD6c8fpdGYU2zBUW5hEVB0MCNeJL2ODgyX6qo9rZl6QnA1eKQMVcEHU/K BrrA== 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=joFDOsKs+NAFbN3RIAUIUKJ/S/U/4kVDdXEagvIGGd3DfFNHqEuugW/VcIk2Bv/5fk SS8Mkc6NJdnvy1zkddnsXV0o1fNm+L3CPSN02IzgJzLuBiRLUucWnTIbq3bWhNiz9Tn+ G6TMpshuT61beNdpMatHBVnsOoNcFwMenj3Bs+hpw7khmnLS78gyEA+VSXzhOlZ/cjL4 qJ3lvoV7RAMccjgZwVXIvQGW888xHjRt7P5GIC6S/tEiTIQAOtBFnJtWr75xFFU9/Ewq msSCGgM72ICcUSPWH7h4CEjJbU91xsunwLYgjK3ZtjEsCAXS8tEl5zL8tWZ5LvLCdk/T sAfA== 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 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 w26si6504740ejn.699.2021.03.07.21.08.54; Sun, 07 Mar 2021 21:08:54 -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=PvNl8bYr; 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 S234305AbhCHFIS (ORCPT + 6 others); Mon, 8 Mar 2021 00:08:18 -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 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);