Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp516661lqb; Wed, 29 May 2024 02:45:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0er+qhwkKPXxO8pFwbCyVJhSPZ9Il2Wh5zcDxpfSG2QmXLjnL60rzMQC4GTyNgyt2FNpW0Li8u257vu+90wsiKa/8e+CY8gCIJJD6lg== X-Google-Smtp-Source: AGHT+IGU9kS2zQiZ6zQwJ+RpQdicQBrZDTqqj3Va6CeYl/c0dyV73KLgfWm0SGBqUgnc4AQ2Sd4d X-Received: by 2002:a17:906:5913:b0:a64:d3d4:509c with SMTP id a640c23a62f3a-a64d3d45215mr82866566b.19.1716975902697; Wed, 29 May 2024 02:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716975902; cv=pass; d=google.com; s=arc-20160816; b=T8SlFEnOwbVHBcgLmVPcI3Vk/EMDQH7BjUCWZj/hDm20wJBHfz/fO6/QrwrrxIUuXo Sz0lAEZ/bBbRUFcLI/6fMeLyx5iHSsYdXiVWemb0M8jp6B3oi21Z0DeDPzO3DmIatJUY vU1wQNQ8IpqDBU6HNYpdGmHtG0tkj6FFMTN5jpbdMnmv0syw8/8r5UIwds2VFVAriAii kqP9ZTgqnqExWU1rJW7oJ0LBsFM/KwiZkFsL+dafPBnD1G6/UaGCBOg5BwKBPp2Jwq3c aQKRn7yLbXxeDtrFiPohKo2kHCW0TOuC7elc4NI2BQ1zDK7Ojl89aaRyqB3J8SgQsBbV XnFw== 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=ZF4K+J7INENHMEK12avN5HA6bon0pjzgZ/rRT6Gk4QnGl5KIFO67ncfvl3KwRVaQ4b mvo3wTsjpDJfKgbMvLTgKNUSFYSNy7Yt9RgV/PbvKhlpQYKPS4GMON9qQeo9fNn2B8eQ ROQfsCvo12a491mMK1bl+89sTcFXM/9W8Qz8OvhHB4eapJms3oDAOHD/9UMDlV8g+sji imVVrYYjXvuuBFv7iugh/kPoOqWMIdYPg+d2zDv+6vWNfUhLxSMb0IQTMZ1jDgedeC6U 4ZwYn1xnw5Iaue1/ukAOgs+nMWon0V14UkPgqvC74HBQB41/ncOClSSfwDz59w57p5ec 2wpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n9J6h+7j; 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-193870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a64a884f153si62324466b.711.2024.05.29.02.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n9J6h+7j; 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-193870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193870-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 548731F26181 for ; Wed, 29 May 2024 09:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 519561802BA; Wed, 29 May 2024 09:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="n9J6h+7j" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 88F3217B4E7; Wed, 29 May 2024 09:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975714; cv=none; b=IbnLkhBJWz7Wl+81QEqwf8xIP7LEDYuuvD+l/1zIQsVY5zVjlAGxENxr1J/pfqS/jHeP4EHl+Dyl7pqyPsTPUJxYrFlnxVjdqAA81tZbl4IKiYco3mX75WzQ4qJyQZoeeU+J4+c+GVyIHGTxHPSsKkz6akrSWKy98J296nIn92Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975714; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t7z/U28/b+n1JQcT3C5QCSLl8Z6Rp6HQrBMKVVlrgJW2u9Ms3uTr1joJRDEq79vON8UZqfV9vhKGdh+Bh5x5zvqfCjBNhoKOZIjwh7tPbeA5UHc6a2ucdJXcwwhD7cpnkBEkleljvD+yFWygOVj9OZTi2bSdzhI2PqhVUZ7o8CE= 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=n9J6h+7j; arc=none smtp.client-ip=217.70.183.195 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 DDB286000A; Wed, 29 May 2024 09:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716975711; 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=n9J6h+7jqcsEBH7023OhShT/AD7asDKTE85FsHdCSPt9v6a4IYqcjp8EMkxyK8E6B8UBCo RzQGxt9Ldq+jUvrdcDooEogSwH+lMPj2EfKpp4AMPnxm6u3ONWQzyfg1QUYcMCHNVcY9dE +obdRWinP/VrhoiSYOmmBft70W7XUgQPRpt/KEOBgqRRY/Qq1fR4A7uRLenHyc7EbjsV1p Xm7VcQNoN4wMsbBOXQg7az+E7rxgOaFqUfI+95uAJ/aVccBR9C/E0Emn+OrbixxDuBgzQA FlGJmRY78Y2kUDKEw7agAwjp8P81GwIkTR3aQM5FWWhdMqAeXJM6o3vNp6OrHQ== From: Kory Maincent Date: Wed, 29 May 2024 11:39:43 +0200 Subject: [PATCH net-next v13 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: <20240529-feature_ptp_netnext-v13-11-6eda4d40fa4f@bootlin.com> References: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@bootlin.com> In-Reply-To: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@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