Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp256860lqs; Tue, 5 Mar 2024 00:37:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVepYcfmEGzl7IkuBzTb7Mq36z600e1U3gLEXV5okMPeUp6xf8K1x2d5nDH+tsyB2xjiQ1Ar6HG4PERIRKhXXVarcxOzoQJMzy9FaZVUg== X-Google-Smtp-Source: AGHT+IHZI8qex5Mqm6fK/ibki2PlOMtYkQYk6Nvu/naQjVPgsjS9r4UmJT5yjhk81NzT/szNMG5e X-Received: by 2002:a05:6102:2759:b0:472:682a:ae64 with SMTP id p25-20020a056102275900b00472682aae64mr929317vsu.31.1709627875191; Tue, 05 Mar 2024 00:37:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709627875; cv=pass; d=google.com; s=arc-20160816; b=h41+6LQBufKps31VWzVQ28G5l9BeH81CeECwJDSw+AGZXnJAi7XV9vLkJCTxu1NL0v hC2vbXsbYs0W02jObP0CKRpPRhD5OW6q3AEXMiDLZvyYlsu2IE0SycTm4TGgTutz5pXH U3+BKDt+gVt0CrAU7w5BFmtdVu28Uu0F42HBPO6UTdF21X4jBvcAcDhi52Cfy3unnXQv QPjAkpKz1BBwdL37rk14OIURGJZpX14z9HAr3VD+0P+ZEg03ygvmRPxIyqGnXfRy5Uaa 8AoBpsBryyaAw6uzV3gdz1cCW/0ph/DwT0zDHH6uqIuExlhSNwrix0WDD6jd1CIGjshB r6Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=slMU9fALR2FKtthS6g2GplC/gm7hOVa33LfK6FZeUCo=; fh=UJDUaOBs9WXhSBmlMfxI+X3raUlGjBwdzob4VWQCW4s=; b=ErBfnGe3PAOR/peELYKCdwrNk4ap/pw/SGDj/BlVFjCM+rtCvbj2eJFlgddyBegt7J RibZD/gqWFw8YlzJY6xQBO3ryKWJTx/G/hse8e4H2Ha1ucwRjbJMFO8MPTasEN+xWwyB 6L04/gu0Q8kf+dpTVg6OGeef81YFgTfo2VGj1mHG83BAWumjwiiPqLFAyGoeJTlgPEAz zTqp1UIlhTuzsUk2TaSdxVXxCHs2qW1W0YyIc7K7Aluurk+5dwyWQNvwhVGs3UJEJJWd RGaT7onenTtFH7T8baaeAXv5tizMwVJIifcPI9TCbXPrsAwk9fkeU79kmNwfxigElWa7 P+XQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=AgCIe+Wj; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-91915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g5-20020ac87f45000000b0042ee2cb90bcsi6188608qtk.798.2024.03.05.00.37.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:37:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=AgCIe+Wj; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-91915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 DE0111C216F7 for ; Tue, 5 Mar 2024 08:37:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 789CF4D5B5; Tue, 5 Mar 2024 08:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="AgCIe+Wj" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 443961EF01; Tue, 5 Mar 2024 08:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709627865; cv=none; b=UoHCXngdC1mt5z3X8c+R+YYY++ZgD1lARk4bLD1TUCi/KYtrILj+8D7TQEBR/xVveTK67qCSXGHFfokBApiiH6o0o6F7tro8brDPP+Icj9JrXBSKNsqkNF83eTjWPcKqtlkmycDoLrHDEJ87tTEWv2/jbnsR1DdZ1DGi5NFY9SA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709627865; c=relaxed/simple; bh=FpAGb89Nhp9Tx4qmJbXKmvYtorSULzhPc0KcYtduHzM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p4qo4LV62McUg4fmO60c2Z41ovpxy393+XZvUufM5OmianchbsWpeOBz0VjjJ7XmvulL0E+xJ2zS0JEVLRTqziPrdrkmCMPJt8Jv4pQdxWd3CznzLomEmEs+UTIIY5iSZtNbQURkpvG5yHXnv3XxrgX56AJNvw596kSqC0YmLhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=AgCIe+Wj; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=slMU9fALR2FKtthS6g2GplC/gm7hOVa33LfK6FZeUCo=; b=AgCIe+WjIze4L7uAzJboSfBRRT usMNSmG6kawNKWQU4sVBqXGsijtuyTw277G0py0wCeYSN2OursIgPUd0coX/zDD+5m6REIKWYlaeT jlEVhn/pdBxpfTP+ByL5JnH27FTP5ySvZilSUV53SGlHppmiKC8aJYUP+CeXxbTw73AowLPY6jfRJ RcWXv63v2MN5dAmo0XOLLQHSHgmzPN9UxUkz9vEkYDxLjD/9w5jmaXX/w/iRgeQjl+3zTCFEaOdBM 2oMhYqcryDBIIhuLuRSnlbtuq++Qtv8XC5Tz6UWWMGHXF2RjwGePu9YA7eWzZfWS/6QvUO4cYXR3t DoIa3oeg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59010) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rhQIG-0006qe-1U; Tue, 05 Mar 2024 08:37:00 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rhQIA-0005Gy-FG; Tue, 05 Mar 2024 08:36:54 +0000 Date: Tue, 5 Mar 2024 08:36:54 +0000 From: "Russell King (Oracle)" To: Jakub Kicinski Cc: Kory Maincent , 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: References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-8-455611549f21@bootlin.com> <20240304185734.5f1a476c@kernel.org> 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: <20240304185734.5f1a476c@kernel.org> Sender: Russell King (Oracle) On Mon, Mar 04, 2024 at 06:57:34PM -0800, Jakub Kicinski wrote: > 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? No. In the case of mvpp2 + marvell PHY, the two PTP implementations are entirely separate. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!