Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1836008lqe; Tue, 9 Apr 2024 01:32:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmwIcVjYTDHR7xCKvMc/mETnPyb5K69LQK28if+QnAz2yb+PaZawpUY7V68AvsA84sc043z/LlsoE9dl7uz1y8JejYeT1Vtcn0pfu21A== X-Google-Smtp-Source: AGHT+IGo5PU0zHjCuysVY16cb9QYNm6HBlgTkJ4IQ/cog1nUMxZHqBrA9KrpOMVo8rHoVRUW1Vu4 X-Received: by 2002:a9d:4d8d:0:b0:6ea:27c3:6342 with SMTP id u13-20020a9d4d8d000000b006ea27c36342mr867685otk.14.1712651562482; Tue, 09 Apr 2024 01:32:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712651562; cv=pass; d=google.com; s=arc-20160816; b=IgnECQhpfdWH1ydjX7v+3KD4vtloBwpMaEHuHQax2zPsfxBNrMZx89JsBAB6SrN9Kt YBOLXJEQYDR+9O5twKwvBNN1/Bad3I0v7K4ry01fS+Ef0nmBJ5gN/bN9rWQ68TWQ6dtk BYxuxSaZUEtH5BoW/JNp+QVLGS6/yxDqtJItq2RQiVbUV0445U2L6q0S6Pd2Gmh1yoQV LDJApBe7ICH+Jv8ia7DAJX6RmnhGKmOOFHnh3zxC1dDFdRQWHx7xRQLq+mFzFk1AfMg+ fAn7SwQgelUgPyBv99ShgtCbHG+s/KaPN0U5uerCC0n3/fJEEA6AR+64+8dgNzeHESkA wkSg== 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=Lrex4K7NGguC6HXaAmB2Q4E33oHhvojN8xdKu8Ocy3TCsJbL8K3i4Qv7cbPNG4Px9a fT1e5bZB7axBESZuhaAJLcA/o5MCtEwmtFxpkAsbNrgv6oaGRNDV5VyzWRazedSlflMa 0A29YDDe/ERqpZZ/aWIQPR6M8BI8UGWte8zZMcaKItT5mHZB4cO8JJMfNxWyVIPgAqE0 uO3RvQvbo51rB4bm0Fef84jAaKxgbY4KBEHnBhV3Y9RTdVQKTjLKGp4IbiGQWoGv08XZ OHQIvxaBi2Me6L4D9TFUR9N4B35IVLEinvPxSXQi6lgnVPA0Zj8PdoAd5Q04yPHGRpp3 UxLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RurPN5K3; 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-136471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136471-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. [139.178.88.99]) by mx.google.com with ESMTPS id k19-20020a63ff13000000b005ce172ef504si8008374pgi.36.2024.04.09.01.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 01:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RurPN5K3; 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-136471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136471-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 049D8281E54 for ; Tue, 9 Apr 2024 08:32:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C19212EBCF; Tue, 9 Apr 2024 08:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="RurPN5K3" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 183DB12CD9C; Tue, 9 Apr 2024 08:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651242; cv=none; b=r3ANFeNYiX7Pb388OrDgSsRhRmZq6QLw6/f7jQXa1n6z+QQcNytTWtdQizqwXcQUauZMaESwpkzuLG1Omq1KUjovWkWOXzhYKVbDrbHEcWkD5GWeNKGXJlwGq0B53BsH7SHDoE3TtJ47LeyjRMwdpnKwvjRlHtm65QQr0sZIfTI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712651242; c=relaxed/simple; bh=Ccu6UJMGFols9hejHCvUU8L02LM1jWMbMXDbUMzT0KI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z66gqn7hFffRBbf/mOCi9OjzWGFaJLpb9k+foBtqj8P9O6G8Tk+B2AFp1B+fivw17W+c0eZmbCthb9MNscHG0P0X98v4wTws66dfavF4ct/xvcGlq10Wforr0RxuCUdD1SGxg8WsJ/JxSuwv0rBUkD9ul69SwlJjCFcgiahA1d8= 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=RurPN5K3; arc=none smtp.client-ip=217.70.183.199 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 773D4FF814; Tue, 9 Apr 2024 08:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712651238; 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=RurPN5K3L34qfRsKY5KdvkQmhXNM+g+wDEc3LzlSLKK1ProrUoeDax5U8GME09klMw7aYA dUQ2DpkqQB9ALSQnc+s+qOi2QAeCRfWZRDCoAq8UR1G7g3xrPv/JreqgJ12K4WZ7w72suo 6ro8ItQzUs/EIViPq+c6EuXflGXKg5I/BWBA9I4q0iVRCR3BVEswUA0+KA6t1MM9NP8h+B E+A+QhqrieZZGtVPOC2bAAYtWgjudbNjbK+6XqLv9Ytg4IW167P9gPY3WF0sm3vrg0Qnp3 p3rPcgpYJHLMV5+3CO75lHFaJAZ+gOoD0R+/jpm0SgfRYQh4L21Uz3BUxqHU1A== From: Kory Maincent Date: Tue, 09 Apr 2024 10:26:33 +0200 Subject: [PATCH net-next v10 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: <20240409-feature_ptp_netnext-v10-11-0fa2ea5c89a9@bootlin.com> References: <20240409-feature_ptp_netnext-v10-0-0fa2ea5c89a9@bootlin.com> In-Reply-To: <20240409-feature_ptp_netnext-v10-0-0fa2ea5c89a9@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