Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1268156ybg; Wed, 23 Oct 2019 13:03:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFnzfjkAYHb4YMJhhOdP3ACfgqprtprsPllkpjunysQH8gPWTsqXsOxv83lo63xLy7KTH0 X-Received: by 2002:a17:906:1542:: with SMTP id c2mr33682134ejd.80.1571860991033; Wed, 23 Oct 2019 13:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571860991; cv=none; d=google.com; s=arc-20160816; b=btiwcGSeHp2KW2iydPFk8GyzTUQxFGX4l+Gl3gq9FMCxXUtiHJ4zIPMf8gBd63GTSC jIKGFCeKtoTenXeQYxsAj45YK/MvZGrcUQ/L7jE+hELX7G+E2sawIqZR0TUXdAvL6t2o /lHOmXTlc0zun1PKGoNsjSXvfmZwOsnIeYtBFUW5lSuDW8sZ9CXeqo1eXAujNwMExvB4 7IgcyHOx7Skz48quWiVE0qj2Ukkxzslv3GDLmFeO2LU8nlgdz8xgG7Jrr/cfHZejSPm5 5MZuI7PirquiWyIuuah5XXRhJ+REUlxtGi21QraTpnabrlrj+gAKzz8AQkvvdZfj0gC4 wz5g== 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=lSnZA9bxU7loOp4dF65Ex7/O2RXZh7blX/xUdMjpFYW7AfZRZ2O25KBtayYiwvKhei 9j5uweaMpNGv67zzukc5AtME4vaL9FGTRqW0mJViedDEu0dpImk5e/qVzksSdhW8fxig 9AIkHYMJX/eu6WQZzGX/vIZTFBKDWndy5uTF8iXCvIY6coSMaURKG2G3Xv3gq0fDEHD9 lA7zQ8jpI1SegDs6CoSsLQodEDnE9JWu+q31pKxpZF0G/koKCB+dfOw5SP6Iwrru6hjx 3rLZIvtE0OX91UuoptEffQEgq/z4SmPRpaCY+TNNOe+K8OXj0eAWASdlbSid6kmrpLMS bFXA== 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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m33si15477697edc.94.2019.10.23.13.02.40; Wed, 23 Oct 2019 13:03:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2405404AbfJWM6b (ORCPT + 99 others); Wed, 23 Oct 2019 08:58:31 -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 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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", -- 2.17.1