Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1288515rdb; Fri, 9 Feb 2024 17:20:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNLJWxfxesKGpZZd564c5VkAuFIvI+RCb9flefYcb+DgGDwLnLkojueucmUziphPCQsuCG6+vkqQgDleGVAuIxG3B1it81QOAslBVfcQ== X-Google-Smtp-Source: AGHT+IFiiGUVPj+F6Qef03iqzZe3dV6zALWnzLPDEsxrPqt6nvrCHfpEhV0F7q+WqojTCSpwbt/G X-Received: by 2002:a05:622a:513:b0:42a:6d5d:18ac with SMTP id l19-20020a05622a051300b0042a6d5d18acmr4840381qtx.22.1707528051217; Fri, 09 Feb 2024 17:20:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707528051; cv=pass; d=google.com; s=arc-20160816; b=MPS3UKq5/daVRBHBN9u2hFwbqm/deC18osw/TbcEJfcH7/J5PJeiVAlc5SQXq8IUvn 4MajmR7YOtKs8PzHxk6LpdfVei8evr4E722ocqfDVUf67YqOepHt2dRwCtRbLqU3i0iK IAm2UcZW8v79xlx6HQ26oaJBkPdQpZzjbiTpM+Tg4SFL1ha42dpBmGLP6k5S3i/zVGaR 7VYtPWwoNClgiG9eLTQ6H2e0FxT/Gv3HStoj+3MktZEjD36c01Icw5oqYoiGfqobATNg JRyzttmhFKXn6VVd2s0Lg67hAzMNPdC8z7J73XX2KbLkefLj6plVWJa4UnZoTpPIqcZv iC9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kQUhYTxFugDn5/h0NeviHtOes30s2gaxQ9TVCrFash0=; fh=EEb0wlH5O7nN9L5gDgSd0xkZnke+5QqUDrCa771ylOQ=; b=Li0tHDq7Q45a7KLQazxVx5JsV/iO1p+YIv6322EpVnrghob1g8VRXvo8rB2s20f6uZ ctXIiUxql5pismbRojtcbjd3SK7rOPu2hhzBdmuKxy+8X16qs4gtl2tGXus9t1yKkX8/ GIMUyOxxlQqzbejddMn1CGj36c020RZh6RDmALJzEujJps32lmx7bPbuCV3rWNzeHQ69 DEN3cnlQ1FLs64kBsoGu6Pvrr9ZZkP7aSsvAZ1G2SzqvLusI/eK21usRoKhhEThbrNCa UdRGkylGUYMJQA9Cb7zJQwlv5bvpduncvKdJNT8/3oqRwf9GE4NHXgC8bWQnLV11G22U tjRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qmlD7rnc; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-60214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=2; AJvYcCUPo4tOW88Me2rXYYUSsK15QdCKh5YZP22tTCim+lpftuOr9L/9XoZAr262vD4KcPg7koquP57JOeXkxA95IWzhjny3GXhF/rgIL65TSA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bv26-20020a05622a0a1a00b0042c61555754si1856686qtb.770.2024.02.09.17.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 17:20:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qmlD7rnc; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-60214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F0FEF1C24647 for ; Sat, 10 Feb 2024 01:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 044B0442A; Sat, 10 Feb 2024 01:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="qmlD7rnc" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 573121FD7; Sat, 10 Feb 2024 01:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707528037; cv=none; b=gnZgVsTkH6O7RiXVnBqC4AsQeBcSexd7+kdRH2NY0OnezxXZB21OfDkDPr6IgKSQweyOC1gHQXYKYtmLbOeESRtAgwz1sSKiKwBQsZvNqIaPaq2lPinISoKejAGSIivKtZn2bS6LknUWriJ2q4t8BLVigqh7m/mV8p66HfSBdX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707528037; c=relaxed/simple; bh=UKdOgTJS3khtpazw1OpYocuod3sMdQ1N4G70EeNn+5A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lno0cC2pIx35x2qBuIcaFPTG1evGlIRqhwe8WrkWi8saZoKqHBIXSnU8QldN2MpqCdQOcIv++9qa4SuANArPy6gmlprVMcG8TL6p1QisCB8k34UzJ/Uz8IP5Bc1932RWdYGwEB6g8g09t8Y6cYNn4fqQqPXxN7f95PQQALspGcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=qmlD7rnc; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=kQUhYTxFugDn5/h0NeviHtOes30s2gaxQ9TVCrFash0=; b=qmlD7rnc/jz5FlypoXXSVvLyJQ cJGjxVa+TxDBmRqp1hEkyDYDpXNTJys8l0ZDx59eT9enwgLzF3pofJJS7mVQewFuy6wL+aNl5QNLg kLeITLcQ7J0rgIv5th81H5mDznq52rml8XVv1ITH3+RMBCrIXbx2IG1PKEdBjgnIlKoM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rYc2f-007Qq6-0X; Sat, 10 Feb 2024 02:20:29 +0100 Date: Sat, 10 Feb 2024 02:20:29 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH v7 03/10] net: phy: add devm/of_phy_package_join helper Message-ID: <1787d720-1890-4ee4-82ab-5eb973c279d6@lunn.ch> References: <20240206173115.7654-1-ansuelsmth@gmail.com> <20240206173115.7654-4-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240206173115.7654-4-ansuelsmth@gmail.com> On Tue, Feb 06, 2024 at 06:31:06PM +0100, Christian Marangi wrote: > Add devm/of_phy_package_join helper to join PHYs in a PHY package. These > are variant of the manual phy_package_join with the difference that > these will use DT nodes to derive the base_addr instead of manually > passing an hardcoded value. > > An additional value is added in phy_package_shared, "np" to reference > the PHY package node pointer in specific PHY driver probe_once and > config_init_once functions to make use of additional specific properties > defined in the PHY package node in DT. > > The np value is filled only with of_phy_package_join if a valid PHY > package node is found. A valid PHY package node must have the node name > set to "ethernet-phy-package". > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew