Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2376654rbb; Tue, 4 Jun 2024 03:43:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3Tqvz4R/rKUdJrj3zPumn63KrC6alAcZYsmAKcuYV0xf/TuiywQTUdQvEXylxnGHT7Rq+DP9o1DV34zUlzM0DF2eZ2+RoKuAt8I+upQ== X-Google-Smtp-Source: AGHT+IFMwF202vM4XrbJo6v+EXQzpyDfOYEfM2A4Rcpj5xExd1zh7oOD77dpJk93vNu1b7g40kbM X-Received: by 2002:a05:6e02:2165:b0:374:99df:1da2 with SMTP id e9e14a558f8ab-37499df20b9mr73205855ab.18.1717497812919; Tue, 04 Jun 2024 03:43:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717497812; cv=pass; d=google.com; s=arc-20160816; b=EQ8WkTknhnF+AFbVgiMSVEEaJ4bvQGLrlk3RUSAav8/J3OIXfCc7e3gQR7XnEf8miS zCwUbRGECnrf75FzqFNP3N2ZBjThEoVVVtF8iebuKgkm8CJ4BWujdxFTXwvk21t7QFGj 9e9eIlHgg0s2gRzxOMHBmcRUT+KfXH8a9y3ROlqL06nzriC4JIlJA3b19kBVzYqc8pp7 eVdH5paNgk053XZ64WGe3pDFRzooXy1mzJSrIvLhSmb8VeXeCN/MtMjFQ5anjyhASwea 1y/kMATkMFFgPmdq1Y7yBXWtolqKxxb8AtrpgbhDIJE5DVPF5kruB0VMqsa/bmhy5X66 0mLQ== 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=pCZlyoA0wwwtEJBhoshRCXZ2O42UHuzFGDmai0yGejtbFezLztcRu2XVeem/7ON4vo 9iaUa6bdSSOnFAPQhpNWLnzfMFZxKWA3TtXg2svL8WjYz/69lYZ9CBRjzrruL1IJBtpP aOQJMkc/FzKlMQjDLQvM1qeaKceyTfRZRXpoUGfUTPNbO5mXiGNXgxdOrLO7Ykspc1xV 5L3tSFnyWE0+rZySvlBeGI9OqzUK6/L7Mcm+OeDKgSVL/X1DKglaMGSM+uslsF663pl/ 28QYB66CkCkSAjNM9dzAWCAeYK5Q+osu4pmURcpX1jzvfp2r+ivSBWoBI2z/b02N3qbR L3iQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VaEK8qqU; 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-200443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200443-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. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40c334si7823117a12.515.2024.06.04.03.43.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VaEK8qqU; 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-200443-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200443-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 80C83283D8C for ; Tue, 4 Jun 2024 10:43:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BB291474B8; Tue, 4 Jun 2024 10:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VaEK8qqU" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 B19F5146A9B; Tue, 4 Jun 2024 10:40:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497622; cv=none; b=s1TqdClgmew9J4Yi5b2xcWpX3AeyBO/4mi0hDKRwSRdKtws0U4rwkLcRBMkQJI426KmhZfk1l1jRGeJ0kYqKSRv+c3WDPznnXxW81+JW7Zj+bpICKhjVchnlWwlB/2ATd9KCq3hyhfgJO3SB47LWiVQyu8WOLuYHYfY1Jzh45TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497622; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tro5IWSwhCf4A63n+1eYX7BCuq8vLO9xtGrKqDRYzSE+ttd6FNFTphjVh8qGLHebToDPPgG1FovDRJvpHFAGK0cUZk3SVv9REBYnn0ILTsK9N8yXfvhMUHv1bK8fQ14S0jWos5kTNlF1lR7Dsa/lIf+pbB0tAkNObbHr9KPFyn4= 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=VaEK8qqU; arc=none smtp.client-ip=217.70.183.201 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 13A9E1BF205; Tue, 4 Jun 2024 10:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717497619; 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=VaEK8qqUocxVHR3Ev4WjUqQy+2Sz9MMwVlXnD/dfQYO6uHGJCQxtzm8rT85o6fDOiq4Ytd LVgLtk9dTvOtctc3aXTSx2rURxoUCpLRK1heNpVfvKBqdt1LSefu8ysdm27FtALAag5i8b +YsBT1EZhK0tKE9kfFwESK7n5Kc0gxNJueEs7fv3fA2RKcpFtOewnhGB6m88V1z1xqbMm2 TklyYc3fRKyz85B6iJFj14olBZgmB3vx6OQetN82QnmvD6TwR418mJKjTpASSall5UTPV7 MQ40thiOd5VtwyUJjjFVPhlw3Q1qCe7V8XCYlT1wNwVszj/OewMYIpXpjkraKQ== From: Kory Maincent Date: Tue, 04 Jun 2024 12:39:46 +0200 Subject: [PATCH net-next v14 11/14] 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: <20240604-feature_ptp_netnext-v14-11-77b6f6efea40@bootlin.com> References: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@bootlin.com> In-Reply-To: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@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