Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1310761rbb; Mon, 26 Feb 2024 05:43:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUiUXE52jGW6bt4AXzi+uO4ZNfiYso6Z13OuWJfooMXUbww1D5OTT5kPQ9ugBMyaXnbCUcEwgtz8xehQmyZWDJT4gBv24FRvE7K8AVtDg== X-Google-Smtp-Source: AGHT+IGK62AHyiQ08kWRKkOcqcm7uTJMD7xPcOx8oaFucK5ZXNUCpIYEsJIKIYPo/bF8hSyIw9BS X-Received: by 2002:a05:690c:a85:b0:608:ba4:1270 with SMTP id ci5-20020a05690c0a8500b006080ba41270mr8526340ywb.13.1708954993852; Mon, 26 Feb 2024 05:43:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708954993; cv=pass; d=google.com; s=arc-20160816; b=ljnLouM95PyxuAtA3YiqADrH3Tf5hwRMFq9FynBGJ8akfV3O5bvDZKJqnF3sy7HZyu eBF3jvlToQAsH583aKipJA2BF+QycLGo0Ln+z/ApqI4P/jxEW24As1mzlGjhk5fpGaoN +CIhnqkiKIBqEFO7G1XEoLQ3YgzrJmqiIXSL640GtbONCfhLFIyXJP5Bxa+hkPginJjx xhsZkkVGvSmXL7/wMb/1bN/px91qr7RqyCyhNVEzb2Mll+X4aO26twKvQn4h5Sk+vH5W DoIQjPSBBYe8YMR+kjYUVt71Cck8/InWsOKXODTkedqt8xNQ6xiAm9ArMZ1cKvzqd9jr zXUQ== 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=Fcclx+P2VRL5YyMqc19FLMrEZY/bn8QqcU/6ryhVROM=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=erDtCFK0zjT73CW/f/+nZQa1n9/AD9JaS9As9jLA4o6oPEC6cYeVJEkYKl6as/yOgG OH1wJHK1xYXOeYn6Jt+IDBw3cvdBmlN8vQsHkIJq5BHhz3e9VK2Cl402V/QXi4F2j2lD MLKuGWY7zc4sifYue/LHnEkeOSXf2TXQ7iS5vaDmE0WiTDInpSJtwbZAgrv7waW/ti4l p2nCniKMKzhMaC/i8EBybJo3hSgJXepHCzHq65ddbEefh1qKpc6sVOhtCkhcjxjKepBB HsjqaC+EpNOr7lpB8WKcIeNlrqXY/zdHZvIyaq2SBKSr0GYCLDVJ/lGGZSalTZi9dDYW iN6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=G7dMoR2q; 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-81512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81512-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 t10-20020ac86a0a000000b0042e2034bf22si4752009qtr.234.2024.02.26.05.43.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81512-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=G7dMoR2q; 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-81512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81512-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 9753F1C28D19 for ; Mon, 26 Feb 2024 13:43:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6AC112CD93; Mon, 26 Feb 2024 13:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="G7dMoR2q" 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 DAF4F12C7E4; Mon, 26 Feb 2024 13:40:27 +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=1708954829; cv=none; b=aGTlVeBnbS3PIiEkvxSIcM2v3sbg5MhrLFtydjK1I0qFwnooSnCU2rXB6nP8usSPyAeUua9lKfE/PaItv0uTi1mWW7/+Z6l5JVcbInsA7T+H/CHx2FVvUcw7qyI7x22NxOxE4M8lNK75blaxq5frd4V2Y6l2al9DpS2C6W0APZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708954829; c=relaxed/simple; bh=Qcp2uc+UUo36BOh1LCqqElt85kVpuM5XT+lI8HhHyio=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H7STlbK39D49cNWT2aZO9GO64UOhyrUpyQIveJ7YkAcuifsfaLZbJXIZ+EkNiFC4iA0+PPG+xgAWB9/7LVKcbs/3SU53SE58pcoVOcX59s3/U8n5UHwGUG/qDfipeg6Q28sHQBsEEm3BK2wjNUtBLAHho+C6INQFKZ2iNb0F1Uo= 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=G7dMoR2q; 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 05B4540014; Mon, 26 Feb 2024 13:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708954826; 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=Fcclx+P2VRL5YyMqc19FLMrEZY/bn8QqcU/6ryhVROM=; b=G7dMoR2qBwS63OahwRkXlqHYdLodOK7yjI+jcyHar8mBDZi/O0lhyWSXmsvYgt/B2wG6L+ e5EkDYebvjB0GDiG7TCexvbpenahpUeNRmXEhen0Ggb4eLHz/1f6AMLZrNOTBNRbOIx2rv rqK2qy4YR5+HZo7+A6e+6Cwat4dv2aZmmpd2jJzuAG2iLbGMYP4yWH2eBFtDc2SskyO5JE 2LhtfDxAyHWLonvEqYjAskaXRAZsite7gFZP88CF2Blti9gMqntFnT2yGdvOq4RKV0vuQO JqEMx8952Vmj3kInv6uNgwYG1yAH8V8rAT+DjZUh7lao1tBHHmflYTHzS3zvXg== From: Kory Maincent Date: Mon, 26 Feb 2024 14:40:02 +0100 Subject: [PATCH net-next v9 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: <20240226-feature_ptp_netnext-v9-11-455611549f21@bootlin.com> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> In-Reply-To: <20240226-feature_ptp_netnext-v9-0-455611549f21@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.12.4 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.25.1