From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 EFB0416FF38; Fri, 5 Jul 2024 15:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720191803; cv=none; b=lJb4xa4pNlBieQj2e3ZXLiq/zvjOta/aYaui4N6l3P7xHTwd3/kVn+T1ddrD1g+O/9echrBsWqLuQ74fX7IOz0eDbevCn2sa/YLCgVovnsdgQBOemCNJX+proutvaIGPILAxGM0mKNW+K39BYKIfwyIcalSuUcJlx3guqpzVPpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720191803; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JH7vy4JKD3djBrzzY3NnqzTGz90MNOOrm+3Fl3lvy6E6oQ2jDD8tTiMOCy7rB22GA1aFhrVZKK17H3L40JJqdycA87DUOAHdvrK978U+UGYM9bFyy8s+HenT/vSXy6RKzaDE6H+pu1DP8VNMaoykEEFla0zJZ2g5+8FUz+vcW9I= 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=HXpdhjVg; arc=none smtp.client-ip=217.70.183.196 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="HXpdhjVg" Received: by mail.gandi.net (Postfix) with ESMTPSA id 20DB7E0013; Fri, 5 Jul 2024 15:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720191799; 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=HXpdhjVgjVkkmYDqSTgRoUVR8gYVeytjt/N7aAiEdFKWZzcPncOBlBFJ7GG3E8iqkKd6cA l0RFzbqrVdPVdhnalMPlKSn86ZyoYXKTGRHLnETfP+KIF0oEkZSVrQUy0IBfqdeWNDjlOO h4QGDrtehmkI4tdF5XqvE1YNmGoelO6iSMMXpe5HxfuR3IkqfP4ZIwAPVTKBIOYYpO1c2F 9vldZomSukdG6woqwB5s9BjWa/Q2/a1cxfQou/3oxsWcc19EZ0lhQPWZ+qIk/wEibYPbpO KtD6ARlrrCcGqFSbNa8FQvovNevrNbm1uxiXWjmE1x+gxLA5L7iAScbXqlXjTQ== From: Kory Maincent Date: Fri, 05 Jul 2024 17:03:11 +0200 Subject: [PATCH net-next v16 10/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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240705-feature_ptp_netnext-v16-10-5d7153914052@bootlin.com> References: <20240705-feature_ptp_netnext-v16-0-5d7153914052@bootlin.com> In-Reply-To: <20240705-feature_ptp_netnext-v16-0-5d7153914052@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