Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1287572rdb; Fri, 9 Feb 2024 17:18:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXur5KkoPwBD457x1OcpFJjSteXKpUaKZte7nRXSwUfEgdW6d2OTVu/lttIG+jdP+490FV0xsvIx2xa1TQ8lbXppPK/JZEimRkDZeLHQQ== X-Google-Smtp-Source: AGHT+IESQbvmbRol4lpsy75xuOl2p0ORaLdyf0gMuvq6Afmo/+/quOM+LP67UcBAe6aIG4D7Qm/f X-Received: by 2002:a17:902:f685:b0:1d8:d705:c4c6 with SMTP id l5-20020a170902f68500b001d8d705c4c6mr1250653plg.21.1707527896919; Fri, 09 Feb 2024 17:18:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707527896; cv=pass; d=google.com; s=arc-20160816; b=Y+AvcYlzqM6m27wP3EnSapLlzqpzjraxD78j2PURbQ+r4MEGXpU+C4kW26gh8YSon+ v8KZT25pH69tzS65gckLC26ZGhSASpXg1TRjdgG4IKRZ5JLUxNR5T7XsTguK10+3EDru YD74yCc/RbtZpdTqKmD96ND0Q3kOb1fiPAKkZFkWQw897oIA4imskpItw17nyxjAwIn+ yvEMrKu/a0nMLOnUwcQks7514C2w/PSS8mc3xdv56e2uMv5lHcaP+4GU+vf2CLEkOQnL uKM9nQ88Y5AHd6+cGYwjqwnA2rI71eSTxN+cr+o0rMz7o1CpDe4thuPcsDTLoGWePcxI ZtUw== 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=zKZdt/8G3k78mhaP+G1gSjq1dpGWlCzfFW6IRY7O1d4=; fh=yUSpVSv6V1WoKy0PHR/TUy4LZ5QYk/dp5MYFtP3mBjw=; b=A0+edhPUgp0ZzkodAEbaM7tftBoEjWOFqm6HTxcIU4Z8fP9wlB4bCK7aTzyDGCfzic zHy5yD0hCIQ3UzvVToXzBIPkGdHjqYqjGjSQsLY0QS+NZKvFGG6WNIVnNsTM13yuRKst da3A0SrORgf4i60W7aqgC3NyhiVcIHi+UfeRgLgk0tEXv1wprUBS5OuwlCsBgLiZ1GIc qmUM2K7WNCjrirlZ1lY/9O8B27Z9owujm25Bvqlyoc4urW6wUOeERe/QIh4empaUcfuJ a/s7fGku2Ft40Okr+mQ0b5ZiSPD3VmnWu5S7JR6YFUZf7RXlIaKnGWlpMLk39xmF6m6s Z6KA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KltL2qzH; 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-60212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60212-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; AJvYcCVu6wh+L1eBVShdXUHO1M5Fs4D0CaJARJQyY1OcbpY0qa/v7wtRNN2rxPG3oL6ssBk6HPKqo80e/rbntAOOuP0BWyhnVCa/9G9OplI/iQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g9-20020a170902740900b001ce5ba27888si2521819pll.211.2024.02.09.17.18.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 17:18:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KltL2qzH; 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-60212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60212-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 936B6288B59 for ; Sat, 10 Feb 2024 01:18:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15E534405; Sat, 10 Feb 2024 01:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="KltL2qzH" 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 6ACA71FB5; Sat, 10 Feb 2024 01:18:01 +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=1707527883; cv=none; b=BF86QIFjfCn2QkhRH68Uf4Ez3mJhxaP24FE39EdyaosFoYEN5DyMp50v5hdEOu6+xcflWn6tVgwZPyIv9CHu+b1xtNDRCyEQ7bIWYf9KidhxXRaJJ3ffelvp4gG7ZKmxcUbo0/gU+RaBdrHHotY7Honmm0IkVo3rXxvB69Ey8RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707527883; c=relaxed/simple; bh=722mtAfkEpvZBuy7Xfc4E88QMXpjqaGfvRDCUn4uIe0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jKMswnos3VrmNyl+kap28nkSDUjfEptSc3WXkrHOdIyv5sLTdQDEtiYn9aCE2d+wkr6tRcvFfY+aneA5Sgs4Wd8h4Yk02Msv+q7EogbJippEQmyDZvDi3K+dzf4ogTmwa9j0YiZ4QX7XKumJZ0d8abcGcVIYbA9BXeux60r6GZM= 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=KltL2qzH; 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=zKZdt/8G3k78mhaP+G1gSjq1dpGWlCzfFW6IRY7O1d4=; b=KltL2qzHCtRfERU6iAOhacpaIj sSiBQSbGur8Y2zKUTDTwpR52i68tsgLN0BBp2CFZClKNwSuEBrsAXheCFK0YVTj1h2SpF+HCdAVhv IeZJzn6GxEq/GRLpLUnhmc7oNdl+i+fXb+kkfUpO/9VynMVtPHxaUto7h91fDDrms7Kw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rYc04-007Qow-GA; Sat, 10 Feb 2024 02:17:48 +0100 Date: Sat, 10 Feb 2024 02:17:48 +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 02/10] net: phy: add support for scanning PHY in PHY packages nodes Message-ID: <5531e16b-4bd3-4ffd-82b5-0dda7942bb5b@lunn.ch> References: <20240206173115.7654-1-ansuelsmth@gmail.com> <20240206173115.7654-3-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-3-ansuelsmth@gmail.com> On Tue, Feb 06, 2024 at 06:31:05PM +0100, Christian Marangi wrote: > Add support for scanning PHY in PHY package nodes. PHY packages nodes > are just container for actual PHY on the MDIO bus. > > Their PHY address defined in the PHY package node are absolute and > reflect the address on the MDIO bus. > > mdio_bus.c and of_mdio.c is updated to now support and parse also > PHY package subnode by checking if the node name match > "ethernet-phy-package". > > As PHY package reg is mandatory and each PHY in the PHY package must > have a reg, every invalid PHY Package node is ignored and will be > skipped by the autoscan fallback. > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew