Message ID | 20240216-feature_ptp_netnext-v8-11-510f42f444fb@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68921-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp621168dyb; Fri, 16 Feb 2024 08:15:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW2RnBVMnwOAIVeq5vM0BuaEFNM98/hyldU9PXdxZfrio0T966ssCgTUsA/hUUFKuHUbHY3bg9B9XhsMosdi4O33I1cBg== X-Google-Smtp-Source: AGHT+IHoh0NWFDAAY1yYySqZAAD6JVj7ccWy3wFK1QkWk2AlzBaH5xoVLEkaI743S71Psgpp1z1M X-Received: by 2002:aa7:8614:0:b0:6e0:72a9:cf11 with SMTP id p20-20020aa78614000000b006e072a9cf11mr5035205pfn.18.1708100128765; Fri, 16 Feb 2024 08:15:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708100128; cv=pass; d=google.com; s=arc-20160816; b=ZTj6msplBD7+7X/imhkDkpFwrJBoF7ZcuSqNr1XwdgIAnv/637OJNvMNCaAdaHZuOb ISOsaT1hAWJinSo2bL4LulRBIT6Gjf+VtkAyMPVzwlUGi/YM5mqiws7wUY06pCpHGAFX 7qmyS1YnLYwZ9ge9/KQqp4fAFiyB5v1z1WqhEKbNWkAlkyZ4hOtBz90zk3vGvfgYY3xZ TMPK5DjhmCbC4iE/LN8mSMsiJMCuSYIu0P754beWSyAxi0tMQITF472HfXoUMmydnbqu h0AXP7zVtdOzJrZ6VlmIQeoH1zNhvRMwm3cK3SKmb5Jcyd4SIqhXCEPVk9tuv+0a0S7k D2Gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Fcclx+P2VRL5YyMqc19FLMrEZY/bn8QqcU/6ryhVROM=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=b95f+4rby7iNZqP9DLLSq9mSb4TIhFM0BfsJwWyRS8QnZUSg25gqpCi4rd8SW/Uy0Z 9DiAonW/kNkpLU65sYOcEwT6JHmINrvrP2k5gZDfV3f7XWpWixhpDsgSFTDRJ0tG723i XFVmA3NbkqdQc8603BNUiDlIusSIuN8iJLbOeJlC9os6u0xpvtx12VIIvZYbv7wau2tp gAVB9EqlBM/OP9eHdjskcjTlIdHqQnKm49ev1MV3IjgYHnZHn9tOvNuP7zrL2l/khvWe 22QwEjz8BjQEJJgSl/MEPsrPUnozH/K0VVozlsOJfiiayZe897mpIJpG/hBIn9z/NR46 ihjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Sdru2HTo; 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-68921-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68921-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ld2-20020a056a004f8200b006e110b45c30si121966pfb.268.2024.02.16.08.15.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 08:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68921-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Sdru2HTo; 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-68921-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68921-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9807FB25239 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 15:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46FFF135A74; Fri, 16 Feb 2024 15:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Sdru2HTo" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 0A314133287; Fri, 16 Feb 2024 15:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098793; cv=none; b=Ag5KM2zteVC4aU+CLH8EsaapTj51w6nLIw0739yiRdpiZ0NJpbmTLw5JN7UFaNOWGIB49diNaKTqPwz/pieCbxL8NDYb+xlsysVPkkvkZigVaye+GtdTgxb24HNTqnkmzxvhRvutRVetH58Fd7DwIcBDbH+wlKFyFK0WpWPBMSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708098793; c=relaxed/simple; bh=Qcp2uc+UUo36BOh1LCqqElt85kVpuM5XT+lI8HhHyio=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EDHTKhl9/FtR8onCH0vrS/qsZrP+7mE3Uk+tCnR/C3iBcYRdnXCwlClkyPi4/eV4btPUSosLvoswjJIYAyoUM5Te9nJKhh5Cl2JL+RuvmCgrwsb5zm//JUMS2v+26roOuDTNNQ6DeubTFLPuW8ULBINQCsVxn570IZExDSckxVA= 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=Sdru2HTo; arc=none smtp.client-ip=217.70.183.193 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 4934F240007; Fri, 16 Feb 2024 15:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708098789; 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=Fcclx+P2VRL5YyMqc19FLMrEZY/bn8QqcU/6ryhVROM=; b=Sdru2HToC5w4SIlyVlPdFHMaouOsUH9ZYHKsGipSdGiEK1cKxcQEvQg97SCS+cxB+dwP7o dmLxHVvkT4yPK7Q9agn1Mf4r+cy0n/acW+1Wvwkvv7Ddz3FD7tX6nZ9Qpk+AKXA+FGg5Ql FDHZ1ku/r69gCOVvb1x4mwCjRG6nBEXJL2RSItuGAyUaMD+tUTxA3gEuhJQq/w0YdVsa94 GnpaQhQJCTEMHUh0/0FFuyDHt7GS6LpCupoIajybnLjvTPCUsjW0TYInZ8ZFSmZP/W7zIm WVtu2gODgv2V5PzQ5iT8g2AmBxuDYr42bkunhXSiifsAETM1+XsRD3PriMbKaw== From: Kory Maincent <kory.maincent@bootlin.com> Date: Fri, 16 Feb 2024 16:52:29 +0100 Subject: [PATCH RFC net-next v8 11/13] net: macb: Convert to netdev_ptp_clock_register Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240216-feature_ptp_netnext-v8-11-510f42f444fb@bootlin.com> References: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@bootlin.com> In-Reply-To: <20240216-feature_ptp_netnext-v8-0-510f42f444fb@bootlin.com> To: Florian Fainelli <florian.fainelli@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Richard Cochran <richardcochran@gmail.com>, Radu Pirea <radu-nicolae.pirea@oss.nxp.com>, Jay Vosburgh <j.vosburgh@gmail.com>, Andy Gospodarek <andy@greyhouse.net>, Nicolas Ferre <nicolas.ferre@microchip.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Horatiu Vultur <horatiu.vultur@microchip.com>, UNGLinuxDriver@microchip.com, Simon Horman <horms@kernel.org>, Vladimir Oltean <vladimir.oltean@nxp.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier <maxime.chevallier@bootlin.com>, Rahul Rameshbabu <rrameshbabu@nvidia.com>, Kory Maincent <kory.maincent@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791072800476695477 X-GMAIL-MSGID: 1791072800476695477 |
Series |
net: Make timestamping selectable
|
|
Commit Message
Köry Maincent
Feb. 16, 2024, 3:52 p.m. UTC
The hardware registration clock for net device is now using
netdev_ptp_clock_register to save the net_device pointer within the ptp
clock xarray. Convert the macb driver to the new API.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Change in v8:
- New patch
---
drivers/net/ethernet/cadence/macb_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cadence/macb_ptp.c b/drivers/net/ethernet/cadence/macb_ptp.c index a63bf29c4fa8..50fa62a0ddc5 100644 --- a/drivers/net/ethernet/cadence/macb_ptp.c +++ b/drivers/net/ethernet/cadence/macb_ptp.c @@ -332,7 +332,7 @@ void gem_ptp_init(struct net_device *dev) bp->tsu_rate = bp->ptp_info->get_tsu_rate(bp); bp->ptp_clock_info.max_adj = bp->ptp_info->get_ptp_max_adj(); gem_ptp_init_timer(bp); - bp->ptp_clock = ptp_clock_register(&bp->ptp_clock_info, &dev->dev); + bp->ptp_clock = netdev_ptp_clock_register(&bp->ptp_clock_info, dev); if (IS_ERR(bp->ptp_clock)) { pr_err("ptp clock register failed: %ld\n", PTR_ERR(bp->ptp_clock));