Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4639776rwb; Wed, 17 Aug 2022 03:45:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5UadZqQCvWgud8tBO343CYVTdSFT0xFm/ftTrl6Y4ZG6QtixcGSztcnbuvQw4YFyYhqCjG X-Received: by 2002:a17:902:7c94:b0:170:aed6:7e6c with SMTP id y20-20020a1709027c9400b00170aed67e6cmr25211067pll.10.1660733106348; Wed, 17 Aug 2022 03:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660733106; cv=none; d=google.com; s=arc-20160816; b=SOa5qbfTNtDfbZhu55eXVD/7TgH7+NNhdJOD9r14S+dYMIKC2QWcqcHvhR5hVmuYi8 xsZgCtt8s3NmH/fByLK+hIM+Jt4WIQXK31lw16ZykZih3DyKYpj8KwIRHfGdd9qfAGYi jVzRcnNTIOdhW0bb3T/JZXEjC4mlx+Hmljt90VBvyaEhipFM0ZRDBwSVwtYUhsgkNv6h OE5bLYCs3mDElDZURE8m8Di+LGXpaL6JCJaOBQVfVOLhApq+EpPhcRQ2vmDbdWL3wZxq mWMqXyVNtkNYrHxwiv/+0dmCi06GDb8uPmVhrbvkDURJ1YIwLo6QeNWNuXVGh08S5Zks 9oFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=O8jbKEQBySAhMgHnENNc4dgpfRxZV1zLQF89bHQhhIA=; b=mTXZlgwz8iaNhnKH4HkDgKGBTWmk1+zzk+WP8rKsG16B/YjPSIuCSz+2L9uE7e6xpB P6cFqp01gugG7IbQAuZtZw0bwEtXJGnp7/eaaC7DgcHlRMIJZoIQoiR1Wm1bGeEKN3n4 SfmigklwX57QJ3KKavCcBbWfOfFrjopLLwldk7JW0FY6IQWfuczg63p+P12TNHgEJJHa c8M7Tq0MEFSViawdvF97+TmMP66HJ8hh6+Muqd1/w5ox+D2PPxEgQJx+3NbHx5kJlhM6 PG1lhfba2aQ9FPcqLn9Y7d0KVjUzuN/QzS+4oqDkaBmGXgUQULg6nahOCiOkXFeDgUrs NXoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VlBak11S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a634a47000000b0041d9a9bb77fsi15566803pgl.45.2022.08.17.03.44.55; Wed, 17 Aug 2022 03:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VlBak11S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238939AbiHQJ6b (ORCPT + 99 others); Wed, 17 Aug 2022 05:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238849AbiHQJ5x (ORCPT ); Wed, 17 Aug 2022 05:57:53 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 175C681690; Wed, 17 Aug 2022 02:57:32 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CB0471C0006; Wed, 17 Aug 2022 09:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1660730251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=O8jbKEQBySAhMgHnENNc4dgpfRxZV1zLQF89bHQhhIA=; b=VlBak11SJoxZLo4bubcX7gE6J8VXefDbQqrTG0i5dASfp78ntWeq2dlNH6zLRPsv655g1a IwwS3RfdlAzALW0pa6FalnjsRTwo/5r2gru6NdgIxxDbq72vL+2EWnHowTtJ3qo1SxkdpO dx8t88SFoD2k246sXyisuxnJlVO2CFHt0cCWIXkrI3oRLTECsxGtMehAchp4FfsgMx9g5k mDFxotRfGiINIntRkgM2j7b9foq1jdYTRL/r4zCxa6RaLjfaECeJ+NJYqYfSnjGWteFjsC b66QdduiyrgdBIuYJ8zIVNc5VzhTkHOYQa0EG0tIy49v45wVDyl/O8XZQu3+1w== From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Richard Cochran , Joyce Ooi , Jakub Kicinski , Eric Dumazet , Paolo Abeni Subject: [PATCH net] net: ethernet: altera: Add use of ethtool_op_get_ts_info Date: Wed, 17 Aug 2022 11:57:25 +0200 Message-Id: <20220817095725.97444-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the ethtool_op_get_ts_info() callback to ethtool ops, so that we can at least use software timestamping. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/altera/altera_tse_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/altera/altera_tse_ethtool.c b/drivers/net/ethernet/altera/altera_tse_ethtool.c index 4299f1301149..3081e5874ac5 100644 --- a/drivers/net/ethernet/altera/altera_tse_ethtool.c +++ b/drivers/net/ethernet/altera/altera_tse_ethtool.c @@ -233,6 +233,7 @@ static const struct ethtool_ops tse_ethtool_ops = { .set_msglevel = tse_set_msglevel, .get_link_ksettings = phy_ethtool_get_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings, + .get_ts_info = ethtool_op_get_ts_info, }; void altera_tse_set_ethtool_ops(struct net_device *netdev) -- 2.37.1