Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2130453lqa; Tue, 30 Apr 2024 08:53:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+8zJTON3MVZ0MBSOZN0T9X+E/bXPCqdKyLikYl0kX6PzS2r+wv9LzVMmnnKc8GrrH+22FI0ZaXiW0gifVfmquBdqFfcqZyx7a2Vt8kg== X-Google-Smtp-Source: AGHT+IGCV7GUPgJI2xpXvslZzMy8GThuBaXZCCSgmLGVDn77e1/tUnfvGgJ7NnMBftq8r4ACyfKR X-Received: by 2002:a05:6808:14c3:b0:3c5:f567:c58b with SMTP id f3-20020a05680814c300b003c5f567c58bmr17203538oiw.38.1714492409517; Tue, 30 Apr 2024 08:53:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714492409; cv=pass; d=google.com; s=arc-20160816; b=f0407pBdLRbsYp2hEatuBgjDqhB7JnZYn+HtL+t5OQEz34IA1uxPVmlHfqh6EO0r2u DgiAeUuuvpkqWDIhHwMSJx+f0bsVOlVc1D4n9RF5VYy5KXSQw9vtXe3hzs9MI7uBQ/we xyeTJT/S5cih1/e6Z8IF1U9NrSEZr9lnf0HiOUf/QfDbD88ak1KGgXGn/7kWdZ0sKeH6 SY/Q+VCiIakicQK+vj3953xm3UZBK/X1Ye6pio38BUnJp7INePmb84sO5iXCeEET/2n8 Xmvj5ugm435t/vuvuyri6RG9a6KbKugyI1D3y4KEXudJc+ufq2eax23JI5uTX+8In0ZP oUIw== 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=TK/W9hOQzfI0Ad3qbfJjWhiLglJoRwsqcdnqi9uaq3o=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=uCPJywPCAavxVbv5balhI5Z5ROdRW7Nq67vRjJrlE/W55SGYCTREcAUzmM+4/bBG4m Av8SUgHAv1TqIeJTxYSI6QyoNne2iUcO2b0z4lqDHfDfO8Fh74zbc+ddpKSQexmp2bCK fWzeVdlcppESUggnoCuy0T6Y9J0K3ZygEOGv9oPnv+Mb0FNnFWzjFdVXmIJKbVTySDXe 5CT0XhHkeFrVn6SAyD4zSY8a33bK189nGDrx05JH2Kj2rwOW0nhMWfS2OVXRHncXT8D8 Z+CJejrdpdYgjWzKUOFIYJtPYr80FU08iWqLsuTGNlPu6mxcGszVqVGcXNHQmVDcrfOS DOXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="gEPxg1/z"; 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-164315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164315-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e22-20020a05620a209600b00790f884876esi4301242qka.700.2024.04.30.08.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164315-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=pass header.i=@bootlin.com header.s=gm1 header.b="gEPxg1/z"; 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-164315-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164315-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 3C3721C22BF1 for ; Tue, 30 Apr 2024 15:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AD1E181BAF; Tue, 30 Apr 2024 15:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="gEPxg1/z" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 71D7C175579; Tue, 30 Apr 2024 15:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492252; cv=none; b=V3G4kEoBUR3F2JXFy9pJ1HjX65wWyhUONL7KURXoAAnffhKmjYiSjW3MeLlNSPsXDd535FTwuUMscRycVl9v+GTCGL/eUZl5Xo5ua7wf96GXY7tUVmJXg/Xk/YHQdKuC725ilQiq2b7NJrIhXg9ohJdl1F+85VGpuZ1yAoLEGS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492252; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qMx6/VZGndHpCmV1xiZzol3A9JhC4dmJ2Mjaal/BLo0Ic6tyObgaoFkPGFVowMPrtIQ15AU48r2Y70T4rl1K+XlSfnRlL2/7fY5ZUrVpKb84GNZLjnWm6yuZ+AOHHkM92ZWH59KTNIhQEELONHQOgq1VUMt8xj6598y7vRybkJE= 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=gEPxg1/z; arc=none smtp.client-ip=217.70.183.200 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 4F3E320019; Tue, 30 Apr 2024 15:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714492240; 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=TK/W9hOQzfI0Ad3qbfJjWhiLglJoRwsqcdnqi9uaq3o=; b=gEPxg1/zuJw12sVBixiyTdZ412jB4aqPSSbWWQAqgwab0XTcuxbKltpXEVXMppfAAB9C7D IIgo9kF6J76JSNDv3UPL1j2zF9bPAks9KfANx+JSJ83HY59Wwt9F3wjLubtw97sNULhCpg 3qekfRj0GAkJ7Vmx1+sYJwIF+fwqmHkPwZ3w4jbFEDZfATTZ35becExkeeUOywA39xp3ch XBDM5iHXgDU/rBdrqo88vekYCVnJYRhxYup/PhVWJ/pxCKarl2Fbhs27t1lmuJikJNTEEJ pk3l56gfbo0iDdOnNVL+93MBHZz19SU5f/sp47aYxxAjKbnL3xMxrC24w96EAg== From: Kory Maincent Date: Tue, 30 Apr 2024 17:49:54 +0200 Subject: [PATCH net-next v12 11/13] net: macb: Convert to netdev_ptp_clock_register 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: 7bit Message-Id: <20240430-feature_ptp_netnext-v12-11-2c5f24b6a914@bootlin.com> References: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@bootlin.com> In-Reply-To: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@bootlin.com> To: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , 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 Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Kory Maincent X-Mailer: b4 0.13.0 X-GND-Sasl: kory.maincent@bootlin.com 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 --- 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)); -- 2.34.1