Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1191125rdb; Fri, 16 Feb 2024 07:56:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9McxL3xMI98qSCx9QRm+mfzAkes48TMcH+Jo6PAECZa8L0lvwWkTWxOSv07f8VLQNb7SelETI1EjLnEd5FDKbu5lWawmURJu6qnGI6w== X-Google-Smtp-Source: AGHT+IGAKiefs4xpI53cJAI3ZGtqbQUU96qGsv5rg8RdVtDan24rblwZgS8Iteb66h2ZNbgPfiB7 X-Received: by 2002:a17:90a:ac11:b0:298:bc68:a8c8 with SMTP id o17-20020a17090aac1100b00298bc68a8c8mr5089083pjq.6.1708098994329; Fri, 16 Feb 2024 07:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708098994; cv=pass; d=google.com; s=arc-20160816; b=eKKoWyugIsKFHfnTQ6zvE8K/g81o0/xC3TexIC5nAKiCR/SjZ3GnfE1KdX+yjoXaVq DgF1yN+nzHDHZ+GTygTnU9V9hO8Y59nLKrLHOHyxxCy0zuzBoXQzNDTWB/FrzHvrytrY qfFLobobzT4vndwRflJjM+u/WDJQwxXGWSwRA+0TeWgpBe6YOddoHeQkotqw3fD0NFCC YJmSJt5oI4qUpNx8RNp+KuLI4ua7vymueM2tqd2ovCBPnNcMdaID8NxQ8mY0JKHy/t3s g0SMSwNjZTmjYKt9PRPsl124kNdJA+dtRqKZE6TMWC37mHb0X/OtUqfwW0cZoKV2bZ2H mgEQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id nv13-20020a17090b1b4d00b0029705e96d0esi142128pjb.117.2024.02.16.07.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68921-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB72E2840A0 for ; Fri, 16 Feb 2024 15:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C6101353E2; Fri, 16 Feb 2024 15:53:14 +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 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: List-Subscribe: List-Unsubscribe: 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 , 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.12.4 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.25.1