Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1362363pxf; Fri, 19 Mar 2021 05:45:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuACBCKZkM/f4llxc+U2ECT0R+1aNkSqsr4n5d7iEChpk9P3Alc7aiXPzzeQ7kU2j8Ddtw X-Received: by 2002:aa7:c450:: with SMTP id n16mr8984240edr.16.1616157943180; Fri, 19 Mar 2021 05:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616157943; cv=none; d=google.com; s=arc-20160816; b=XKKfirJvW074jWYqg/0qpob9ZelxyF8DvkhbYUKBLxymFqENHB9JQW0zFVoPHMVXXj 3itbZ5H6qfBRHm9rh82db0xgi4MdE2Y+EW+Ma8RaMcFsEjtHbx0SUa4aMrQgquUt00E5 tu2hH1gXx/gLPKJpC1M7gN+owrB8IFRZyvTzXw+gQjHcmWSvRg314xtvvF6aaT0BGfEg Tcviauos2/bpeKRe0EkABrd2q2/wvhEohxcnTpNGTpejd/Y7ODrLyFGVKcg1LqVtEv1t +NHcBILGm8E0hycNkiKJtZU6K7vNT+mpDL+crkdIEzfCbgN+92CXE2I0RiG5ken7FKeh FWYw== 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=oB57UEadB4VXPn/zIn4lhlpYZUctvKVQXN5TmcBzqmU=; b=WtIckiL7PGn4pgEEB/arB2gANMNnLVGJBRzRm3E0vkJCqa5YMoDk9bbDxoq8/GZTpC eNyJ9i7l6dl++fuo9ENqqfPB3hmXe5EF54ImnP9P1m9q5cYb3ctPW5FLwdFMUjEWyd7S o9oOco27O+CgVPGeDlfvMvHVoE5FnOmX/ARpPxieU7AlIusSPu8RpTmZwCAMqWzjOdOs WPV4XUxSSZ6qadTNU3WeXZBe07UWZvVpBfMGFbsAWfTlg5FVfDktHR7RuMFTDZbdkVNx 2hHH8RIMVoIEj78Z+hds0LqI3mBho9ATBPqOohDWSUbthfdCxKnCSXyy3wEeEcwHJzOf iF9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KY0US6pT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g15si4219405edk.323.2021.03.19.05.45.20; Fri, 19 Mar 2021 05:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=KY0US6pT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230218AbhCSMoY (ORCPT + 99 others); Fri, 19 Mar 2021 08:44:24 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46062 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbhCSMny (ORCPT ); Fri, 19 Mar 2021 08:43:54 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12JCfk9u107966; Fri, 19 Mar 2021 07:41:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1616157706; bh=oB57UEadB4VXPn/zIn4lhlpYZUctvKVQXN5TmcBzqmU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KY0US6pTmvVkiWKHdcWadcTO2omgPFQ9EBNwoMw0PWHWjeHpOMy2sS456NZXSLZtv BGjQr0Np/ME6LlM8Qi/rENHmExKLRsFjSKd6mT9Gbv8JWj9Epp/sh3w084xVUnIgTs f9axkXSIvrgBvnbF1CnIUrCjozLopggDWb0+S13g= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12JCfkZG047308 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Mar 2021 07:41:46 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 19 Mar 2021 07:41:45 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.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; Fri, 19 Mar 2021 07:41:45 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12JCfTf4011913; Fri, 19 Mar 2021 07:41:42 -0500 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , , Lokesh Vutla Subject: [PATCH v7 03/13] phy: cadence: Sierra: Create PHY only for "phy" or "link" sub-nodes Date: Fri, 19 Mar 2021 18:11:18 +0530 Message-ID: <20210319124128.13308-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210319124128.13308-1-kishon@ti.com> References: <20210319124128.13308-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: X-Mailing-List: linux-kernel@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 Reviewed-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-sierra.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.17.1