Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp142353lqs; Mon, 4 Mar 2024 18:57:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWoY+3pnspzEmYq+FtCCUCvBdai873Idw+Qg6miTWtiVe1WWlPmjEs79Su7HTCF5RdhMY2uScSBnkmKe2ZJx4AzhtgiJArpyhy8NPYidA== X-Google-Smtp-Source: AGHT+IEn/hMke4UqaysQl+eDKDI4f87doHvzQI5/X4zOolWMTk5f97vVUyd7KL8ggQLFgh2Bd6q+ X-Received: by 2002:a17:906:c46:b0:a44:6b6b:a787 with SMTP id t6-20020a1709060c4600b00a446b6ba787mr1287573ejf.37.1709607467770; Mon, 04 Mar 2024 18:57:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709607467; cv=pass; d=google.com; s=arc-20160816; b=V6hygeTuYpzp2qsS4H2gwGmcwEk7wkgZZWHoQXhJMQQJYfK+QGu84eT1Hh1Cy/AQk2 6XSUNfH20q3IYv4MgaDEUFJ5h7hdrydfxEipOb9bMZeoiES5Pr1qz0x4aslXJCh6K4Bj D2tm7nOS1M9wXanMK9hvNdPi+7slS+HSYOz4iwyMPJ+8Mw4pnWGWs+xYm6uGt6VQp0yb bJXaCi1b6S65lN3RIUCtILzX8yIKFugTIezU2d/oozCtyew1yfdLDlypo5qFF2NV63cF U0VONQhGcmY+8QrOg2B5N6UBhoPBHjfvKNztALKqduJR6CiVheQTbWfKXkOJw51tZEGs GVMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=kZqURoLm0kLX1tTQOFfPyfMVa+A+jJvcucLvnQPNpu8=; fh=AF8u3Hq2LCAR86VDBUa9qi/2kjQJaPvHiqWvnKg4Z08=; b=cpzrG8hrNEEtt0ARV8wDXjZRWBxtNOtwbCu+zlvS1K62MVvMn8klV/ShSb9zyHwavO W8fzLjsRWLU9EnqI7d3XAcVehdbtCNm6TU5GwEAw7XOtTJ3BOIJRnt0xfXLXowRjVf2h ZZQ8lCQlcTu3f8SR5QvGKI1EoKO+/9cGYCd9fcT+xvqa+fbcey6IXclaeccTrBl5ZYP/ vwV5XydpyQLNnbvm9NJBAt5BRBDHaX5sLV4NtsGW3z+YBr+GR8FXJ63JE1EtKV7ocqw1 oiHbrn1lOoRLaWQCauKayxvAutbBjWYEoAz+Mc1YL43zfnnW0bbpKnfbZpEHWLmnYPIx /pWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=as7SqSZm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s9-20020a056402520900b00566c2066151si3974603edd.535.2024.03.04.18.57.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 18:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=as7SqSZm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91587-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91587-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 80B541F22FD8 for ; Tue, 5 Mar 2024 02:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EF6329427; Tue, 5 Mar 2024 02:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="as7SqSZm" 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 9E45C28E23; Tue, 5 Mar 2024 02:57:37 +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=1709607457; cv=none; b=o+YXHoN8Q2wB/zxfiOpSfiD0CBVfussk6l1YKnmQ6lxL+Wgq5Wk90qUQzqwJr60yaRHIovc+we/RFvfV3jl0n3I0fDWvVqyeDSKbtDzmmfzvnVFKGkVtHX6+qzS+goggJwgXq2RatvEyib5rkgLNDW5ZNU8SmMD9p9P5EN1mnCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709607457; c=relaxed/simple; bh=kZqURoLm0kLX1tTQOFfPyfMVa+A+jJvcucLvnQPNpu8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DNpAZ4wXKlnuhsb1emzypUno4I7GrlJSWxDX3Wtp9qyepathTbz+7ospSGKRTrsmjBz8P98qVkXkBZdutNhR1oYvpYlKLBq7hWMXBjOv33mIs5MdJMiYBtT4L8aqNQSerM7Iy80JpV5BpAMUymKy3EWl57JTBWym7HjjX+FoxX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=as7SqSZm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE26EC433F1; Tue, 5 Mar 2024 02:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709607457; bh=kZqURoLm0kLX1tTQOFfPyfMVa+A+jJvcucLvnQPNpu8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=as7SqSZmwRTcTVUYzqUQhO7JRz02GyGml4FrhVWj/NlBBCpjcRcdPS5qFn+uf35Ti haO2FZifwhg7YoTdByrF9HGjHk2Q0hg1ROyQs0LEkvdDTVzz6w1ASvN7oVEMIjmv8Y GunlzrNGHJMmBbmF0eulR3utsanV98ZmnCCkYiwnZY0d+l3WQ0ANWB8ELec0PT0GL4 4ANFm3mF03k2Bt85PU/OVff7HgJoheJXIrnqm+Rq6a+1XkolrBfvXrjsi5xya0PDzF FZmzfbNLV2M4UVjwTOyIhDANEwensN+cxBWrkwJLRfLMR5E71Bbr2Lh7BQzfH1zuY9 0FHHv2+j07YbQ== Date: Mon, 4 Mar 2024 18:57:34 -0800 From: Jakub Kicinski To: Kory Maincent Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu Subject: Re: [PATCH net-next v9 08/13] ptp: Add phc source and helpers to register specific PTP clock or get information Message-ID: <20240304185734.5f1a476c@kernel.org> In-Reply-To: <20240226-feature_ptp_netnext-v9-8-455611549f21@bootlin.com> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-8-455611549f21@bootlin.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-Transfer-Encoding: 7bit On Mon, 26 Feb 2024 14:39:59 +0100 Kory Maincent wrote: > Prepare for future hardware timestamp selection by adding source and > corresponding pointers to ptp_clock structure. Additionally, introduce > helpers for registering specific phydev or netdev PTP clocks, retrieving > PTP clock information such as hwtstamp source or phydev/netdev pointers, > and obtaining the ptp_clock structure from the phc index. Can we assume there's one PHC per netdev? We both store the netdev/phydev info in the ptp clock and ptp clock in the netdev. Is there a reason for that?