Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp511392lqp; Wed, 12 Jun 2024 08:09:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJDLbTN+DYRBJkJB2p8JqI/lT+7xqORtjdS+YhnwfPndhgPLunqZfgcNRq/aeIHnLqHxXm9fkfrROaTlCy5lUONwCIjIOGXLCNymghWw== X-Google-Smtp-Source: AGHT+IGe0YiwKh/9lheVyBfnKTQEp3ktW45s3NUAwuRhHSyQX3lNOAMhAofbhrizb3mTLKwkcpaS X-Received: by 2002:a05:620a:198b:b0:795:d1e5:5a59 with SMTP id af79cd13be357-797f6030bf3mr245223885a.45.1718204990179; Wed, 12 Jun 2024 08:09:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204990; cv=pass; d=google.com; s=arc-20160816; b=nB1ui3PIBdpZUFiHDgcNGRysMSedc2nPIuM13jVs8viFwofOePggRMeQoolEVltPYS n5mPRSX9AFiAe4UpkH2OptyaOKwa6mwh/20/tGIdDefwi289dYTmpBAFMDTXy06dHWnd wPaagil8wunxrkEptslCypRq6PKDY+1DgC3huqzB21EbDyF3L84Sei5Y3Kl3eAnqxyNw YPkiLHi0E9gsXtMMyCMmfa1bZDJyBRxfyLm+6kWRHdCvwW5jQTxHBN2ra0Ucset9L2oQ kjh4+q3rf0rUC+7DRb79awbvblVv13HGtjCypCrpHUTsXhniw+qnl8zc4NzUdd3bEuDy //wg== 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=fEziuQGKEsfGUZ7m+FLOwW+ds+lhq16Ci7efr4Jn0LaygJcNLvawluRPP6gMgDc7wG 0xKKn+5n2ifRWKEL59UAgRPwXceufBvowkg3iPFbUqUXVn4IB83ETs+qolwqeuHKl1uB wDp+WqAIfx4+W0/Zucq6nVLTwe/56ylWw2cxSm33ucGmIxAMDJlY6cX/TKLCJxznmDNs OkG4ACfIFQcVrhqCCs918cjf7S/xvhxHMwd/emBHb/EZx6J0x1UMQtibB2B8xEZ2M6WF DFSb71zcp9GQuNyEZ5RyzO340XEO5amDoirb9IGqJMAXSBxqqA/+b5TSfwInoCZPvTna hYgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FBL037NA; 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-211750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795331d2970si1656063885a.297.2024.06.12.08.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FBL037NA; 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-211750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211750-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BEEB61C2227A for ; Wed, 12 Jun 2024 15:08:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE103183067; Wed, 12 Jun 2024 15:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FBL037NA" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 C50FC181BAC; Wed, 12 Jun 2024 15:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204711; cv=none; b=neMqGp2ZotEEYElj1o2C6/mh9TlPu+ePdhDXGQFo8AawvJ+z/JubeN9NJ2BeoD4Lv3jpvWpij6VFU5ogHOdm4dYfmxAxz36hvrWIRajXdZIlybUYjx5ICC4cCfvV8rlK4dDbRn+ALYNZnhr4bdH4Rlv28IPlh88wxMK6QROkjZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204711; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D+CGJ2aI300S7pKioTCNqYxGRhdI667Z9Pk4rMDhO7HQ1pTvOAN4bf5swRxX3Px3G1hHz0YC/5acjUTHJ6Jpb0/nekzsPznjZdRmDA4UJxAZ29Vc7OMT1UvILloCJw+1rRjNuq3RNC6XvpR+YyVN7vmJACgJS+uxKf6Hb3tHcSM= 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=FBL037NA; arc=none smtp.client-ip=217.70.183.194 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 0138E4000B; Wed, 12 Jun 2024 15:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718204708; 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=FBL037NAU1mp2SkKqd8NckyOZ7SgEO3pB6swdhANv/Rw+hrL50iYcqnyFfd1A7MBIw3DFn OpRyPU6CmpxLjyzc7uW+JZLtyXZnJs4DgZYJj7dNQIkWYkTb3w036MBllIOMonFY23VPT/ 6jrlyrLldtJHEnXMWbNEJL+yLzcbQd6X6ES/IZtCxCOEEm0XjNyWip+9vlNfR65gZdZFRV KkT9+u8vlAQy7dB5OKdmgmc/VjECp595gxyHjZHz/qIKI/Zm+J0VEsSukqpwOkvcfGFYWs uh4DHTCweqj+gHTbnPEmthIe9jd+I29jRTA+E1aF51M4MRygbMyDIyU3Qkqs7Q== From: Kory Maincent Date: Wed, 12 Jun 2024 17:04:11 +0200 Subject: [PATCH net-next v15 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: <20240612-feature_ptp_netnext-v15-11-b2a086257b63@bootlin.com> References: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> In-Reply-To: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@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