Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp226537pxb; Mon, 2 Nov 2020 19:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSKlhWmq2zFmBCc9IOZEuXl9VYzrTxBdUaxJT05H+ODxyCZ1Csch+VEkCR46Bv3qn7lxQH X-Received: by 2002:a17:906:2e08:: with SMTP id n8mr4557265eji.440.1604375955970; Mon, 02 Nov 2020 19:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604375955; cv=none; d=google.com; s=arc-20160816; b=nTk7f8WF6S619v4vTRtpVIXIezAu+Rg+y7cukGQRc4zW8lm1SN4FqTzuHRIrbpyi+M 8p/fTh2owCer8sTuo6ujo6EPzAS84Om0fjj+5ck8NTzvI9lh6F2AhpY+UriUcLHDW+V8 OmDuHKF8rW9TWtrSACMxurtNBVAm9hIODZ35GgqNfxYr02apLPPY+9E0xm4Gt3M6XxRL AZeZDRL43G16T7Tx57WVZQtSNbVpCz7wyxcWqFisvnLKNCo1f12L/J2Vv4prjD7ml+mx llmGS/wHbgssA9dlETVio+m+Fyr0g4HZrqb77dALjYi2s9GmpeCsBY5Mcv36gIVsx+2q P3Mg== 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=eMj8XstivoruLPX0OnPBgk0XuR0TBVAsG5hVa9Q7tIA=; b=fHakQOs8l02hH213XkIDoG7j2DRV4thiSER/UW/eMYTEmPTs91XqIXzOBuLUy2hKfg risFdT+J6sFK1WGwKXg5q3j/4EVAmcDa1kZQ7FeTIzCrZbpuQ2WLTdIr9sy694f+y0Jc 523vziASFJw+XwI8BpF1bJXIBhEOFfhmMyLoby1+vi/8Kp9Ia6YYZMPN1Eayg+m0AxCz 23zNDeZ0rkQ1uV0XvdRmdq7O3eGQZv6c0VEqGE9it2LZH2hUrdCIyHnoNqdfnlJleqLz 8MDLEGJSWYL9VWTzcbU6jEs9mm3ULPumiOuG31EnHxKr9u/pGsKCPdsIynjwbzboAeME uYWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BsnbF3G1; 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 s8si13146798edc.481.2020.11.02.19.58.53; Mon, 02 Nov 2020 19:59:15 -0800 (PST) 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=BsnbF3G1; 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 S1727300AbgKCD4X (ORCPT + 99 others); Mon, 2 Nov 2020 22:56:23 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:39526 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726938AbgKCD4W (ORCPT ); Mon, 2 Nov 2020 22:56:22 -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 0A33uFx5023685; Mon, 2 Nov 2020 21:56:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604375775; bh=eMj8XstivoruLPX0OnPBgk0XuR0TBVAsG5hVa9Q7tIA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BsnbF3G1zRX1dgqBObs0+in5CdLIkDvhAxc5VKnOAnXuoQpxgUuC8ttTZdZYWwhxz 51f4H5CMcM77NNrQhzZAE0fl/v0pcVN43BExw3BVx2uyzW6h+jj6czA/0CmOPavEoy oMUE1t/IMrRDy3xvVeCeQuPzngsVpvJOIKXKEsig= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A33uFLM126296 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Nov 2020 21:56:15 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 2 Nov 2020 21:56:15 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 2 Nov 2020 21:56:15 -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 0A33tuqP101157; Mon, 2 Nov 2020 21:56:12 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel CC: Swapnil Kashinath Jakhade , Milind Parab , Yuti Suresh Amonkar , , Subject: [PATCH 4/9] phy: cadence: cadence-sierra: Create PHY only for "phy" sub-nodes Date: Tue, 3 Nov 2020 09:25:51 +0530 Message-ID: <20201103035556.21260-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201103035556.21260-1-kishon@ti.com> References: <20201103035556.21260-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" which represent the actual PHY. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index 453ef26fa1c7..4429f41a8f58 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -573,6 +573,9 @@ 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"))) + continue; + sp->phys[node].lnk_rst = of_reset_control_array_get_exclusive(child); -- 2.17.1