From patchwork Tue Jul 9 13:53:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13728114 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 F2125190473; Tue, 9 Jul 2024 13:54:12 +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=1720533255; cv=none; b=YsBWd2oRtjXbI17klyH2qOHVox8l+cr5YL8QscV+d7pnCd1yKmaIuZLEP+VaM+W7z4lkUsTVf3YloMc6hgxbdDmSAHQUtBFUvp02CVL6h6+YmuHnMsYt2MByZAo5pmveW1BZwyuso/pdjTCZIN0cK0y5jahGX4WvWHlGBijpDs8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720533255; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uXndzWFDa061mq37sz4sR1k2gFHXDcxcp46zuIbz538N2i7wAP29SH+FAcGODbxQz+jI/Q09ltrPzL/dDQHhB3ab4NYGuM4fGicGxj3/XgsDTsHNrIrXn35BIxRvW5dCNabBBmM07f7tcYYRkRgZqxfP/8GErlRXmPDYczQJ+io= 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=gtKMxhOb; 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="gtKMxhOb" Received: by mail.gandi.net (Postfix) with ESMTPSA id F24D91BF206; Tue, 9 Jul 2024 13:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720533251; 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=gtKMxhObrf8VqYqjOR59YqdTFqrkaZhh4g4oQjIoMflF4Og84E83sR/cF4vDZSkcXFki+s KYTr080DHiltiWPPhsjPFLVMFONT4QIKq7l1T3n49E1zSQUE0x+6HdoJsz853PDbrU8SHo 02L2kTuhkXhmUPODCFDciSY5mBUAN/g4ePgGE4LzMspzL6WuE7AOaspKcoTCuxNaHTL5A1 hYFiKy923WLQbXXX/rifTEGziEmzf+3g6BFT2Sg9NKX12FyvgB5wiOdssCyIdbqZoAXDFi t9FErBkIrTh8Z8r2c/qbczZFntDGR2H7r2YnC4nilZ9tjosXJt9S2T/ihGMpyg== From: Kory Maincent Date: Tue, 09 Jul 2024 15:53:42 +0200 Subject: [PATCH net-next v17 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 Message-Id: <20240709-feature_ptp_netnext-v17-10-b5317f50df2a@bootlin.com> References: <20240709-feature_ptp_netnext-v17-0-b5317f50df2a@bootlin.com> In-Reply-To: <20240709-feature_ptp_netnext-v17-0-b5317f50df2a@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 , donald.hunter@gmail.com, danieller@nvidia.com, ecree.xilinx@gmail.com Cc: Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Willem de Bruijn , Shannon Nelson , Alexandra Winter , 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 Reviewed-by: Jacob Keller --- 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));