Message ID | 20201222070520.28132-6-kishon@ti.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5095750jai; Mon, 21 Dec 2020 23:07:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHAsd1Y4J4egmgbDwwLSP7Oo2agedE9z/Vfz0FsbZtofPYB1OXgeDYKSszxDIa7uVjouU1 X-Received: by 2002:a17:907:3312:: with SMTP id ym18mr18805246ejb.437.1608620870119; Mon, 21 Dec 2020 23:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608620870; cv=none; d=google.com; s=arc-20160816; b=CNcSQzxOW820zruSNkLAabKkuJWAZjDZNrHfHL1TR/Ze2qONO3NMIwiQFjlRvJA4Sz tMRnMBK5mcWpWTRbBsXF0rqjPuCcebh+X7Hhirsm0ChJcOFwN/dgxeA1jCox4WNwOWxo TvRAxhBgx3j40kut4MyI4UYdMaUwlaU7W0JL2shPj2gSJv7D3JpXI6dhRF1mESTSfvuw N6Q96nCpkwW+JW6H/iIoPXAS/MPot7iwtfX0KJKGJ72EQqMQW1NuBaPmOVuvybc4XlB7 /Y4hmp85jebbYJl7ImJE0P4mbhEfKXs7IhboH9L5va8pwOc6X12MeGy3kGu0NbVKaytr ylpA== 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=VxF8kGigCKqkh77tBFluIHDcpsujh9oOUvSPK2P6qiw=; b=MIcI2icEoLB8M+/JzJYhczAub7pwy0lfRUM6R86kK0fO7cyPuwtYwQDo4b9vBKS6WW EHQkQNK7KMNRjBJ6RcYVx6gt8XC+LN/bC1Zs7hHcnc5z/jxTJHJRiYoRd4/JPZceVa6D Uy+9NNGi5JqAX2+MZbIbUZF91HH5lK4wiSZ6Ki9qV9uMjdr6XILBbqoDy9jNW5nulRQw iySyJ24XgNmRJue+PYCppp1lfP5Rp2BWIpdvIm77RyiLoEE89EoERHR41iZHk3dEClEp kfXlKOvcjgO+slfg39lw6S5yH9hCMPSvsf3P64WyNNYEKDIAysGK362QF6uDTig9AnIJ SQ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RLlwWNvR; 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: <devicetree-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si1408831edf.490.2020.12.21.23.07.49; Mon, 21 Dec 2020 23:07:50 -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=RLlwWNvR; 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 S1726204AbgLVHGc (ORCPT <rfc822;semen.protsenko@linaro.org> + 7 others); Tue, 22 Dec 2020 02:06:32 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53900 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgLVHGc (ORCPT <rfc822; devicetree@vger.kernel.org>); Tue, 22 Dec 2020 02:06:32 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BM75j9t064152; Tue, 22 Dec 2020 01:05:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608620745; bh=VxF8kGigCKqkh77tBFluIHDcpsujh9oOUvSPK2P6qiw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RLlwWNvRkf1IPPSBFf7xqnQZC1ZMudC+O9gjmx06EtgwguWYUsqUtOGiAPfxHo+JF fuMoOXCMLsMx7fOQ9OrXLiQv5rNnLgR0w9i+jRnOVooyj0M/JoG1a1dpGLQnRZJBBs 66wsbwZdSccm7V1vSRCIF2k2l4sKRaq6eigUZZvA= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BM75jZ3014866 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Dec 2020 01:05:45 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 22 Dec 2020 01:05:44 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) 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; Tue, 22 Dec 2020 01:05:44 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BM75N7E050344; Tue, 22 Dec 2020 01:05:41 -0600 From: Kishon Vijay Abraham I <kishon@ti.com> To: Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>, Swapnil Jakhade <sjakhade@cadence.com>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> CC: Nishanth Menon <nm@ti.com>, Philipp Zabel <p.zabel@pengutronix.de> Subject: [PATCH v2 05/14] phy: cadence: cadence-sierra: Create PHY only for "phy" or "link" sub-nodes Date: Tue, 22 Dec 2020 12:35:11 +0530 Message-ID: <20201222070520.28132-6-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201222070520.28132-1-kishon@ti.com> References: <20201222070520.28132-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: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
PHY: Add support in Sierra to use external clock
|
expand
|
diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 19f32ae877b9..f7ba0ed416bc 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -577,6 +577,10 @@ static int cdns_sierra_phy_probe(struct platform_device *pdev) for_each_available_child_of_node(dn, child) { struct phy *gphy; + if (!(of_node_name_eq(child, "phy") || + of_node_name_eq(child, "link"))) + continue; + sp->phys[node].lnk_rst = of_reset_control_array_get_exclusive(child);
Cadence Sierra PHY driver registers PHY using devm_phy_create() for all sub-nodes of Sierra device tree node. However Sierra device tree node can have sub-nodes for the various clocks in addtion to the PHY. Use devm_phy_create() only for nodes with name "phy" (or "link" for old device tree) which represent the actual PHY. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1