Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp729281rdb; Fri, 2 Feb 2024 02:06:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbcpnk2FwsuLk1yhrtIB8XVIcl/2IwGRC8R5c4YMGFEzosKCZCydr0cWIokjvTnhIBI1rC X-Received: by 2002:a05:6a21:1a1:b0:19c:8d73:721b with SMTP id le33-20020a056a2101a100b0019c8d73721bmr8221856pzb.57.1706868377962; Fri, 02 Feb 2024 02:06:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706868377; cv=pass; d=google.com; s=arc-20160816; b=yrmr415znn6MMQZVVZDEPk/zY3oCffeJCtqQ7MdIIvmdBlgbAgtrOiCXrgpao7WA5F jJ/n97+p8olzPuIbuuiPpPfLvUXnt3UdzRMKJ/bmYKVRHqhxyFaGyLY0K4Fkq0ogK1AR u3dMhzinuCdLGRBuW+EcSONIlstvg6yLTL6KcHxL/Uma7LSC4pp86/g+STG6fAHbjHw8 siVPA6FCPqgFcQsK+PcUqdfvzB7zduPLQfkNcaEYaQb5PiUbO2Uhod7pbhnTgJze191X U5RPKM0poPhNBgKQOAzI5TxyLgsmasWOs+MMyf25ohbj9ZfbHChRqxxSjELT5JJxtL3q PAMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=308dpLfNHuYj3AVLCNDGpe821ZhRY6DTk5iDAMIRiq8=; fh=NHfXRG0DRIP+Iywy3w5SXSQ6by44AvA+BEam2v4zeTw=; b=kuBog/xLE2MKA9Hkc9Fx2xsQdiDPWzUXeCckByzqZOfSX1iGOBcS1FNyRzmphmsZ3c nt0lqqmQ595Y7AwrV+BvT2yHk/3JKYBjNHbrX9SKG/knShtP+9R+DO7tSnwNoC1y51Tw XVacaTB7PdOjpubSlD8i35RWZecd7RMWDf9KnVLOmwMvXj9c7OULAfkSyorYlzdAo7qb b4rCWhch55pI1yNnSdgaJLDOrQZQCidjXsDAjEZI3sNo1AuBKKg7seOySiouCUMbfeP7 QZIytozR7CuyW6WAZM1qK2fH5g/xQAbR0eyY1pQK2p/SFI+GftF2EtdmCMnVYGaDmkLl 1F2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dzo8R8xe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49641-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVYAUh2pl+aJYZekAgXsF+m+0wI9pHJKvsFYnwBpnBm+uJoXHIaXFhBpMo7IlzfswcMY2eo/TzMds3WDKj+pc5djVerH8D5qZayHj71Kg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c2-20020a170902d90200b001d75b637d4esi1443170plz.184.2024.02.02.02.06.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 02:06:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49641-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dzo8R8xe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49641-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 96DDD28CE9B for ; Fri, 2 Feb 2024 10:06:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D2C879935; Fri, 2 Feb 2024 10:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Dzo8R8xe" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A9A6013FE2; Fri, 2 Feb 2024 10:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706868363; cv=none; b=NqiQUH4tRM1ekFo/YfQ5dzBRmExw1RwDDA8PAuUx+WikF4+BW9ffsOVEcAXkkcoYIdj0Awq36MtIKM6wP3dAHnBaL1U7uSGYv7GJu/y+ljumLMHCPeHGV8JWrmmgGLBbSI9DVHrxP4afPltO9QRp0DiGHjV5RjGLVToTPxFO7K8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706868363; c=relaxed/simple; bh=uTfOPhF7lGGU9a7RPw0FBYAE8vU05wC8egd2y8enBZM=; h=Content-Type:MIME-Version:In-Reply-To:References:Subject:From:Cc: To:Date:Message-ID; b=D8LYDyVNIpmLpWi2PbYllrfhiw+dzrdwRdpSb5OIhmhLRVg0PZrCQEzDB5sRvMPe894yISIiYyZj0FgbM7e29OXwtcEyndolye/PElfqJ4va9sQDbObguAFJYdzZbuvACuK4zauB2GdnhjTHy6g1SoGC2dy18SJ0eeMG2QBH0Vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dzo8R8xe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D272C433C7; Fri, 2 Feb 2024 10:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706868363; bh=uTfOPhF7lGGU9a7RPw0FBYAE8vU05wC8egd2y8enBZM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Dzo8R8xeVWazqmpA+8BHjGKyvFBT8CZho4MztMK+7zLhCg26U59z+N1CDX7z6NZre k/b3y5lz6mu6dORw1F+aAlPhC0ufiIiCJ0i5VHA+4a8vR4K04+ebpkC0Vvm9ZOfUwv dP0Bo4QVQ+rMN1STKB4dRWrqUKOu8dAwZQc2TFgKNj2MKThWjTfIVIvOUXrDb13Ieg bGT2og5yu/gm/8KJ0gN8qs/MvNx0JTQKluU9l1wU4IbpCIsuyzwASPMi8Wj39+wOsq BUNUZdcl/vN9W5r9YWjRRmSsSKfLNoTUddmM4LRubkm7HrsKG7WImAJLVj9gzh7h10 kwdX2KoTHRz1w== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <65bbd2ce.050a0220.5ff09.69d5@mx.google.com> References: <20240201151747.7524-1-ansuelsmth@gmail.com> <20240201151747.7524-3-ansuelsmth@gmail.com> <170680473689.4979.1991415008659281513@kwain> <65bbd2ce.050a0220.5ff09.69d5@mx.google.com> Subject: Re: [net-next PATCH v5 2/9] net: phy: add support for scanning PHY in PHY packages nodes From: Antoine Tenart Cc: Andrew Lunn , Bjorn Andersson , Conor Dooley , David S. Miller , Eric Dumazet , Frank Rowand , Heiner Kallweit , Jakub Kicinski , Konrad Dybcio , Krzysztof Kozlowski , Paolo Abeni , Rob Herring , Robert Marko , Russell King , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Christian Marangi Date: Fri, 02 Feb 2024 11:05:59 +0100 Message-ID: <170686835980.5216.5174621768810456847@kwain> Quoting Christian Marangi (2024-02-01 18:20:10) > On Thu, Feb 01, 2024 at 05:25:36PM +0100, Antoine Tenart wrote: > > Quoting Christian Marangi (2024-02-01 16:17:28) > > > + > > > + rc =3D __of_mdiobus_parse_phys(mdio, child, a= ddr, scanphys); > >=20 > > You might want to save passing scanphys down, PHYs w/o a reg property in > > a PHY package won't be "auto scanned" later. >=20 > I might be confused by this, but isn't this already done? (passing > scanphys in each recursive call so we can set it to true if needed?) >=20 > Also I think the scanphys should be skipped for the PHY package > (assuming we make reg mandatory, it would be an error condition and > should not be handled?) Sorry if that wasn't clear, this is what I meant. scanphys doesn't need to be set to true in a PHY package (both if we want reg to be mandatory there and because my understanding of the auto-scan code is PHYs in a PHY package won't be auto scanned anyway). Thanks, Antoine