Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp483592lqs; Tue, 5 Mar 2024 07:36:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXoHfF66em3Cxc2Zb3WtM5/GBmI/TXCpgGJDss2Lo8nD22VIzxOfgml0dSfml95WG8J1oulHuFhuHj60cX59v5LcYR5o3+jZiJTu/gkxQ== X-Google-Smtp-Source: AGHT+IH9zxKkuQUiChWyzbRWsH/t1NQPKAcbKTkDdQzDpeFZ0CICuFILHKF0uWaEaoALOhiD8+bR X-Received: by 2002:a05:6358:590b:b0:17c:2b72:3b7e with SMTP id g11-20020a056358590b00b0017c2b723b7emr1263348rwf.4.1709652970070; Tue, 05 Mar 2024 07:36:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709652970; cv=pass; d=google.com; s=arc-20160816; b=Ge+aWygbM80YlW4jE7kHikJfxTAQOaozON1uQ3lZKUu/plYhPEN2bLD7botq1wmqCM yUVn4QpXMpCFLQAK6ZGh3MsRepXz7HuCksVBC9xa9Rq+/xzzjAiiTpvor14CAZQEtV4X 2ac7rQsh6cee40bT8vx0b0y+Bboo1SugSiQiawmLp7BIWlTF+gQPaYtecqRpnjbrU8jo 8USVqekOzMmQe6GLCtLp2r+AZ3EsvoLbd1rVC1mFXKzjXSRV5af5LskL0aDoBHIPrzjV J010NhJaPrUqriD6Evh+y6LN34AuJPqADs2/5QFd4Pt8n73NAB2gj35cGCYnrMn1GlDN yz0Q== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=UT4WtSDtpTkd9ywhcIQhF34YAJjW4wWxhDNZEztSJaI=; fh=wAesrXKCgXYbSD2Sj75cadiw6ETGpsSLUc/zKKfPu6E=; b=dwaXvaSgsetuZZKbrnXSBD5gEegCiiZTrqInLmFC+NyTwakK3Y1aLNsYH94uakK5Vk j1Cphu/g8ow4Ml2BFtsMuYBG5YgeGiAY9hbzteBmsk8tH/wBFhf/D93zcFzBEY3b3eLD KwxI4+9Q2w1jYNBOZpw9qQnJBTZB2QoUXOAzVS87EaQTJ5w8BpGoaw9geLwkcy5WP4Pj 5ouM7/GRbdtcd+L8hFhaleXrgi9k0ftj1bwAhuGDb/iPIEOysmCQS68t9YzSGn+RWksY DF4FqOKza52OJ7woBJWdBN2zS73TWkx+ybUuWCkJEUAo4yQfJiMlFQLpdtZE3CByzbvL IGMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pGe0d5y7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-92613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id on28-20020a056214449c00b0068cb760019fsi12032744qvb.268.2024.03.05.07.36.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:36:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92613-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=@bootlin.com header.s=gm1 header.b=pGe0d5y7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-92613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ACAF41C22A39 for ; Tue, 5 Mar 2024 15:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0804F127B76; Tue, 5 Mar 2024 15:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pGe0d5y7" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 0A5FC1272D4; Tue, 5 Mar 2024 15:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709652953; cv=none; b=upcb4InYVGT8qbNe6FuFciXIx/+Q0YENXqSIMf60CXk9s3h8AS6aplsOml7xbgKEn+3fl2PjK36G7yGn7uc3zrWEYIvD/VAXD3mSHhns4RryTpv3E0rzCQLp6GibVyhqU/IoL7dmKN6x0geMRkWW4D6qcAqORS+jR9CbySXiy1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709652953; c=relaxed/simple; bh=GF32o6mLZBCNxYK9qX7xyh4y+U6z2NwNaLAEw9sMSOg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rOMuy47NTE6FMfHEJ7xBw3/wZWANDg5grKZbG5TmF6eAt0hM4jWu5RdYFCEHzQYrGpk6yG2ppGBIKEWER/hCDlKmzBX2Tbl/m7zK9/GSpiGyc7S8I/Vqyr+eRmjJfsCqI1h+k7/o1xZefyddG//4q9UYhZzotglkl3m6OXkcXMY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=pGe0d5y7; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D4F131C000A; Tue, 5 Mar 2024 15:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709652949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UT4WtSDtpTkd9ywhcIQhF34YAJjW4wWxhDNZEztSJaI=; b=pGe0d5y7UjCFlV9NPpXyD4m/RlxLnktAQKpFS3GlAopanJah/TXlc255UxEHdZhxGLqmT5 l7EM70RaKM07/P0dPFK9WhDhPFSI9H7yLPoaEAFBIhD00RjNGfjqb0j7J3Zq3e87ZaI26B vkFjcDl50WDQV1/C4brQA82WOS+0h8mnONjcf4ub1P55l9vAyVmGYbH/1OZIywf6IzprV+ 2Ha/JPtKo/6dNYtHccgoCc+iUEQyIVVWrBBftlBbt1eu6DmlzwbET2yVEDSDtSgO2gzxvz uJ+U9KhVsxS+cM/3zdvbAtzCK96a232Gscm9Us0lUExJop6tijk/LaV70ahQGA== Date: Tue, 5 Mar 2024 16:35:46 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski Cc: "Russell King (Oracle)" , Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , "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: <20240305163546.3b9f3ed9@kmaincent-XPS-13-7390> In-Reply-To: <20240305065939.2d419ff2@kernel.org> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-8-455611549f21@bootlin.com> <20240304185734.5f1a476c@kernel.org> <20240305111021.5c892d5a@kmaincent-XPS-13-7390> <20240305065939.2d419ff2@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Tue, 5 Mar 2024 06:59:39 -0800 Jakub Kicinski wrote: > On Tue, 5 Mar 2024 11:10:21 +0100 K=C3=B6ry Maincent wrote: > > > No. In the case of mvpp2 + marvell PHY, the two PTP implementations a= re > > > entirely separate. =20 > >=20 > > Yes the PTP clock can be independent from the netdev. > > We need to know which software layer register the PHC to be able to cal= l its > > callbacks. > >=20 > > My commit log is a bit small here. I will enhance it in the next versio= n. =20 >=20 > Still, wouldn't it be simpler to store all accessible PTP instances=20 > in the netdev? You are talking about something like the phy topology but for the ptp? Then when asking information on a PHC (tsinfo or hwtstamp config) from etht= ool we would have to look at the PHC topology of the netdev. This could work. N= ot sure it is much simpler, do you see other advantages that it could have? Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com