Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2243202lqt; Mon, 22 Apr 2024 05:54:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSHs7yjI2oJ/6waZbEPzgvJ3YD6WBBi0yNciI8GEPndXWz04KFV5SlORGBumPv6wmqUGvhiySgHSdwfeq5Z54ooqjEmpZPndzlQtSoJw== X-Google-Smtp-Source: AGHT+IEnJisBpSxfvX2cY+Dx90YNpboChAAY9YY1VXLLjvTUZ4tMsmWKTRS4fX5VXMXphqCdy1+L X-Received: by 2002:a17:90b:4f8a:b0:2ac:257d:3e7c with SMTP id qe10-20020a17090b4f8a00b002ac257d3e7cmr9179431pjb.9.1713790496113; Mon, 22 Apr 2024 05:54:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713790496; cv=pass; d=google.com; s=arc-20160816; b=SmVwVmVE7xKjP8Y+84gmZUYJwxyxNNaC5Ex3IZtSp+dh0r3VO1kJzmNheLYbJN6ODQ r4aMxCSHBmpTiqwCIoIGeq8w2EVWSpj+/NDj99C9cwpAdU/KJtUJjdiEXs+XxpAg4gHK xI00diHsoR5IUIC5bKCbrHVqQ0P6Racl9sMGtcz26jUUz5HBlSjts1vfOY72tG3/bF5H 66xaoSbOjzmld+IItNIxImROBIjQ7Z+s1ElQE7bgqwTZvxKfPHcd5NjhAQkLCJGBSsJC 8422MZbmHKWeVL5lorHE8ZqpvjXvUMqPzy634Pk6pBBvTvCNzhZaUYWNVX/K02ThgYks Tkmw== 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=U9a4yoJII+1mmWhWahbPJzuu1NjdM4oI0w0kklb7i/pKFzY4ZEiJeenIebK+hcyvCi TMbxsNt8//Mac8wbQTO5S6pLIfSU0yh9n7h+pbhHS4R801BTztjbTnKcKL2/dLiMbA87 /bYTxyRuo/y7wUb50niRn+GRNEdpWd2hyolnS2FjJqadqUPhDEosNA8Y8C21rYnAR1Cv mLWohLYtWOlNgzInHSmpYz19HWv1zoO2wHDanOFCDByvXdqJG45/zInpI0//T6NFVbAq GIrBAJWW9/u15ICRDH7QldMGuG7Grsa16YnvxlmhFMyQ/dIgPyv4/c/3saQ+U9wiM8wg HMjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O+QoqbMV; 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-153385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153385-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r15-20020a17090a940f00b002a2344bfbeasi9535239pjo.113.2024.04.22.05.54.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:54:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O+QoqbMV; 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-153385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153385-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 D2BBA281F49 for ; Mon, 22 Apr 2024 12:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66E861534FE; Mon, 22 Apr 2024 12:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="O+QoqbMV" 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 AADD3152532; Mon, 22 Apr 2024 12:50:51 +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=1713790253; cv=none; b=iydN6jPypn8ARoZ9GpGiyP9fNAPZVX4z11qNLVAOQTX6vgQT/y2bMhTjwwywo5bSqt5a/fNr5xJOCkrF9Ofj9NDHshvjNE4fqKpsusXxR2wtK49ccmiZ6d6VFQT2+cKCeVBrJao9WACHrhwppEOxq0qs+tR6nb+xzHWaT5i8lCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790253; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NcsS1YHOS6/7t5sSMymptgEMJrkcbJ+VnUpF2US1vG3mozwyDjduxBgqqvbhLo3PL4Das5vLHYxHzfosRSKW0nltVJ/taI0ABADSDkqvNv0E55/HyER7hofnD2/e4Jk4UnjFSq12qA8+LlbfpbQBdGwb1nwMc6SJmu5MZ0cpehc= 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=O+QoqbMV; 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 Received: by mail.gandi.net (Postfix) with ESMTPSA id C4537E000D; Mon, 22 Apr 2024 12:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790250; 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=O+QoqbMVHtZQlbURXxJ0Ab8/XE+Fi5eEnFzesRQi5bapwIfC5Bmtye6ffN/6+pU8RJc3GT h2LOds4E5mtk96axQRvTgwuU/RBPg6SRZdmJ/Qg0q0oXf4HNYCAr3lvuHKNEX95gHmUcwl mg4eVtM7fVo1Gf3IU5in1H9mibzgnqCriZkFMewqB6fBZKnU9eJ0V26TVNrIWoKnuMhHyw 7DobWmxib6ffdDnBkpY2barQ1hRBSjUxIj9HE5Eu0BkGllru4QMBYJldlNCClkrYxtGWV/ DtPGJn84C2dS7wt4xjSh7DkcrUc8hp6ds2jqJH+z4ZpK6GFoAZdasF/+1+dgmQ== From: Kory Maincent Date: Mon, 22 Apr 2024 14:50:26 +0200 Subject: [PATCH net-next v11 11/13] 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: <20240422-feature_ptp_netnext-v11-11-f14441f2a1d8@bootlin.com> References: <20240422-feature_ptp_netnext-v11-0-f14441f2a1d8@bootlin.com> In-Reply-To: <20240422-feature_ptp_netnext-v11-0-f14441f2a1d8@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