From patchwork Wed Mar 10 15:45:48 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: 396730 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp483314jai; Wed, 10 Mar 2021 07:47:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl/BaHFWSgKXpPlM0DLKjcz8SIUmtSNr38Y0K1zlfy00TfOwjilN7nvFo56Z8ZETHrJhWM X-Received: by 2002:a17:906:1a4b:: with SMTP id j11mr4383006ejf.55.1615391235929; Wed, 10 Mar 2021 07:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615391235; cv=none; d=google.com; s=arc-20160816; b=aLrz//y1lzm63qiZJWEKlpC5s2N0DHk/qS01wmUFyM6weXGB77YG3u9AmuGYB+n0Bi 5YY1bBH+7YHEsn+drPlFMoscuZfsEJvvgl7F0/GZqzDjei4ZGYK3GrXNosvAUvldaaj+ mYwmw1l2kI8huQ/sx57j+RJp9bRnx3k/JHH7ayosuxmRewICZ/RsVMd+mxQ2FQnLJ/kd MdW+i4Y90qVZ2VTPP0WXdKTuJs3wJZRuHAbBF2VNG08cJUM7ViRi/TBNtZtn09tbeLV7 a4/qZ5gDJLpQzoOef67B+u3lBhi3Z9mFuc5mjDVFFDAtroOfrhHlNkiOY7+/WshanX4M eziA== 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=AMrU7FD+6npy4Z4SOmnuCH2TJiSWSF3e03wJjJRfU5fimK5vU0RadFoqqT5X5pgnf/ F7EpMJuqwnR/k0wTDcBZPr0XnGihfaJDnU0P5dkL6U2WqaOdpfSfWKSNQ8IxyJLUa5bA gOie1DYo2IyxdrIcnLrUHSHMEAMJooW0gXhNXLW/Xl+M541RWk0ldCtMJHmvza4gtg12 ZGLbSvI7SX9njT0MzZC1r7CdIvIF3c0QVOer27FJbwAjhVrwT1ZMa9UFsleG1YA9X9DN csfGfkdiWMEASfQyoFYfy5KKV7b8KRzi3wLLbTGoJkTk/S92+qGVBQxql22iHTf4ebhe L5Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FZYWo8Cq; 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 t3si4576077ejy.142.2021.03.10.07.47.15; Wed, 10 Mar 2021 07:47:15 -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=FZYWo8Cq; 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 S232818AbhCJPqm (ORCPT + 6 others); Wed, 10 Mar 2021 10:46:42 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47678 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233102AbhCJPqT (ORCPT ); Wed, 10 Mar 2021 10:46:19 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12AFkFsV067674; Wed, 10 Mar 2021 09:46:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615391175; bh=VxF8kGigCKqkh77tBFluIHDcpsujh9oOUvSPK2P6qiw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FZYWo8Cqx5kLgnbQT4sveJMcY16Ye10ZM4UYY/uP+oFL60ARP0kea9aq48mZDOeRi /1d/MpcYmmQgtMBOgCehfowHJfdsAhsDygxypUTFEUzInpTOp6nA7TosG7mQiOgKyp edX0Teq8WSe1/qIoQolc+OAAU87m16prEjGODGAw= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12AFkFxa014586 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 09:46:15 -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.2176.2; Wed, 10 Mar 2021 09:46:15 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.2176.2 via Frontend Transport; Wed, 10 Mar 2021 09:46:15 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12AFk2KR066370; Wed, 10 Mar 2021 09:46:12 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v6 03/13] phy: cadence: cadence-sierra: Create PHY only for "phy" or "link" sub-nodes Date: Wed, 10 Mar 2021 21:15:48 +0530 Message-ID: <20210310154558.32078-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310154558.32078-1-kishon@ti.com> References: <20210310154558.32078-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 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 --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 Reviewed-by: Swapnil Jakhade 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);