From patchwork Tue Jun 4 10:39:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13685038 X-Patchwork-Delegate: kuba@kernel.org 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VaEK8qqU" 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 X-Patchwork-Delegate: kuba@kernel.org 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));