From patchwork Wed Oct 23 12:57:29 2019 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: 177279 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp688041ill; Wed, 23 Oct 2019 05:58:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdBamuigxBy5lt4QeafZBh5Vi6z1BFBv/dt98E7ShFl1+53UM/x38aKAnffLHmgACVAgeL X-Received: by 2002:aa7:ca59:: with SMTP id j25mr37209444edt.78.1571835511599; Wed, 23 Oct 2019 05:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571835511; cv=none; d=google.com; s=arc-20160816; b=Eh/9fC9Ha+exXWSgNNjt7xrJQYWzRS5du8g8VEwlL8cGQ3ZZBrraqLq1JnUvAgcTJY 2oM3Zf9yrul0zYhgn/Vej35JUS/jFjufmzBmHJnUzwpn3Ybo9B0euAj/zu/tL5lL0v8K 0Pgdy3p8ixbKlDlFm7YW/v+h9sk9pskNkClLrZ2MtHNS/xpgWgA4Z2LYFTG32RJNXV/I jJ14AlLI+PpAdJADaR4CAWOy8xmHiow920zN/1gVK8GBGIb8OoOQeIsPffqKP8I7JI2D tYlsYDBy0Lp52z0Q4S66rIjVMWo3MzL1/Ok/8jQtzfQTrTMSyQVgr/UVBQxWrJzUs2JQ cq0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NpTgzRPuWtGy7XqgqTEEYzUMhl497x1SrGIY18ty3Pk=; b=AelAalpLWuAW3EJd/R1//5W4BVUYowg0PGWOOUDu6VT9r/I+a/qcopXfMG7eG1kDgc Tbst3kZw5xcosJ27RdmX2EHrzk9UQgpJWDOFkrlhnxsNVDCPuHeA1vb/OsnCLde4m2XW 4gkH8z15/Xi/arcrmD2uetJ//Sid9V2DyiK9JZ+geIQ7Ijzzno6MTXaOtIXL69XkxjAY A6Wyq9tvU1FuZ28fHW9JqeEGW2sdVH8vmcnYhpR8Y6+5f+97TZ/5eFjkmjXRXW9KpiNx BM/zlnb8NALgWR/rOlXtBS+CHeY1/GkO2X3auXDk8qt9R1jXKcvrXb9X2kWqW80PH1vu SQUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nlFeiilp; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id c57si2982596edc.386.2019.10.23.05.58.31; Wed, 23 Oct 2019 05:58:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nlFeiilp; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S2405396AbfJWM6a (ORCPT + 8 others); Wed, 23 Oct 2019 08:58:30 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:59272 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405381AbfJWM6a (ORCPT ); Wed, 23 Oct 2019 08:58:30 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9NCwRmW048039; Wed, 23 Oct 2019 07:58:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571835508; bh=NpTgzRPuWtGy7XqgqTEEYzUMhl497x1SrGIY18ty3Pk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nlFeiilpoPvPFSz8cdpQxdL3AV7krjQPRQrJG8p2bgzLtj3zC01Km/HR2SrHiM9C2 eN9qc/HIIw+UHC6EUhB7oVnAeB83vW7swah0Spab9aSk4yIarVPbwIGaMKWWyf25TK 7e1bt1qqdrsP3r6Dtg0mziRRjT1riQxIy1nyFnPQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9NCwRAF064656; Wed, 23 Oct 2019 07:58:27 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) 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.1713.5; Wed, 23 Oct 2019 07:58:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Oct 2019 07:58:17 -0500 Received: from a0393678ub.india.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 x9NCw5oC061147; Wed, 23 Oct 2019 07:58:25 -0500 From: Kishon Vijay Abraham I To: Rob Herring , Kishon Vijay Abraham I , Roger Quadros , Jyri Sarha CC: Anil Varughese , , Subject: [PATCH v2 08/14] phy: cadence: Sierra: Get reset control "array" for each link Date: Wed, 23 Oct 2019 18:27:29 +0530 Message-ID: <20191023125735.4713-9-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023125735.4713-1-kishon@ti.com> References: <20191023125735.4713-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org A link may have multiple lanes each with a separate reset. Get reset control "array" in order to reset all the lanes associated with the link. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index b555d4c3633b..2648a01f90b3 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -497,7 +497,7 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev) struct phy *gphy; sp->phys[node].lnk_rst = - of_reset_control_get_exclusive_by_index(child, 0); + of_reset_control_array_get_exclusive(child); if (IS_ERR(sp->phys[node].lnk_rst)) { dev_err(dev, "failed to get reset %s\n",