Article View: linux.kernel.netdev
Article #24165Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP
From: Andrew Lunn
Date: Sun, 29 Nov 2026 15:48
Date: Sun, 29 Nov 2026 15:48
53 lines
9995 bytes
9995 bytes
On Sun, Nov 29, 2026 at 10:29:52AM +0100, Birger Koblitz wrote: > Adds a module parameter ptp_enable which allows to enable PTP > support in the module. The default is not to enable PTP as PTP > is not compatible with segmentation offload on the AX88179A. > > Add PTP configuration when the module binds and when the link > comes up. Add ax88179a_get_ts_info() to show PTP support > in ethtool. > > Add hooks into the TX and RX path to handle timestamps. > > Signed-off-by: Birger Koblitz <mail@birger-koblitz.de> > --- > drivers/net/usb/ax88179a_devices.c | 149 +++++++++++++++++++++++++++++++++++-- > 1 file changed, 141 insertions(+), 8 deletions(-) > > diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c > index 69095110e70435806a99274c50d79e86016ec9a0..994e749ffaa2b5e2d7c1e1ec362bd55b9c882a86 100644 > --- a/drivers/net/usb/ax88179a_devices.c > +++ b/drivers/net/usb/ax88179a_devices.c > @@ -4,16 +4,21 @@ > #include <linux/phylink.h> > #include <linux/if_vlan.h> > #include "ax88179_lib.h" > +#include "ax88179a_ptp.h" > > static int ax88179a_reset(struct usbnet *dev); > > #define AX88279_EEPROM_LEN 0x4000 > #define AX88179A_EEPROM_LEN (32 * 20) > > +static bool ptp_enable; > +module_param(ptp_enable, bool, 0); > +MODULE_PARM_DESC(ptp_enable, "Enable PTP hardware timestamping"); > + Module parameters are not liked. Is this needed? Why not always enable it? > @@ -182,6 +190,7 @@ static int ax88179a_suspend(struct usb_interface *intf, pm_message_t message) > } > > ax88179_set_pm_mode(dev, false); > + > return 0; Stray white space change. > } > Andrew
Technical Details
Message-ID:
<b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373552-linux-kernel-netdev=dewy.ruReferences:
<20261129-ptp-v1-0-8148c402beaf@birger-koblitz.de> <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373552-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP Date: Sun, 29 Nov 2026 16:48:53 +0100 Organization: Usenet Network Message-ID: <b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch> References: <20261129-ptp-v1-0-8148c402beaf@birger-koblitz.de> <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1199664"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Bwr3a8uFFRtbuhqTXzf9h8IpqWA= sha256:k9YO7PToJALygsGtVHbPCPrbgv27Al4ROAwXO3sPcAI= sha1:YV5QYk5L2cqD3VaJCQklcD+zINI= sha256:rOYQZwfBYeSsHbytJWO1UWCDDEMlNm0AomDijawF7Lg= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id D776E125F9A; Sun, 29 Nov 2026 18:49:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.95 X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vARfsuHQJdf6; Sun, 29 Nov 2026 18:49:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373552-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 39AC2125F96; Sun, 29 Nov 2026 18:49:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id B410A26AA3; Sun, 29 Nov 2026 15:49:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795967350; b=BUjqU6ylFRAFZjSYnOvb8O7g7NV7NS4LeRei2aHlShsqx8ZymFz7RTXCrzWrMJVodGwb 2dE2fPSUTQ1ullqX/3Zd5SqNQnHYoD4jrgDN8VlpNnSesb44tsEECibw/ocyiBjK7/zwt sCe/LA8KUr6YjYxobR76dqYV9iwKIoSgB7ULIsTlKvD/MIBMtinQLXeYsYfbYiBTAoSjx kSia1Ug7kK6sStDK9du8myh6RygfflIJB5dlyhItG7HVbnFq1hL3wrjGV6NS1//1pV7sY apo9p9I7hsKxJUFmCihsPD9YC78KTAqKTc8hctNpRsiYDgl95EaXHH8MnWNU4m6WfAQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795967350; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=uPed5hIulrepuZzJu1COwE7f9jRJd7rJTkASXzMCjJ4=; b=m8xN5Oakb0LBw+oroJVtaMV1rE/MEeCl0sm3PU4oOpsdU+XQLaSKvk2IhRyfTGYx9YAV wSvQYWjh0hP5mpM559HHrNWilWTrJ99jbMmH06PgPt4Sp8/brVKS1HO8ILGl0+rETkIDu 8ddwIRHB48uWXoMA0EwbJ9vUIDtMVGlhvZs6r1EPt0FPHvcj/jFTJ1J4u9B3Pqx4Ehs1t K6MpfQy//Li3y0hOefLRYcbX5fo5bP5LwKXvGwrOIU5cCQ9DcyQTkoi/NQa1t6LE3+JFj SCLHsI6oCRa2t657iFv3D0tyB0/Pyrta/+Wsgxs+4ZkBO+yUhs93tl0rpIunrd3tLSg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=IOjOpEEg; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F2B8606A330; Sun, 29 Nov 2026 15:49:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=IOjOpEEg X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795967344; b=5W2oLx6kuK2e471Q/2M9mmV27UUOYkWxhUkCZI9pXloSOYQm1nzTaCqe3t3WKzePg3EP DQhQIU5TSeWropfWd1Ke5hE4z1i+6//hh0TutTqx4VVWMxukgNX+aHUXDdMwK7iqbJK7V 2vUXyohmGqBstXEFhUjfffXJS1ik4/a+BqG5b9fSUSKaPLAUF8FJHCAggFasXgrHeAELp xYffvhQ1O43h6WqZaQfoBDmORwMSydoe4nhh1HpJLjXPwM+0JFRuE49TAh2mK1kc952SA 9Wi0c5Qa3QTIXzEpmS9amX9gcWPktaA+5Dh2BdrLGokU1T+kD5lZ97bpQOyiwlvtVcw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795967344; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=uPed5hIulrepuZzJu1COwE7f9jRJd7rJTkASXzMCjJ4=; b=XPiUXJ3SuiEuqFZLUmyKEehi311EpJWXvJa/AutJBjXw4KE6BmraAHFzb0sX2wkDluzi FIguyWceq1jgfdLhqRksqVRKIoOBvezuftojoA6flprsQmUyxM6c715cI7DSUawJjYDl8 DR5GPlspEvVGU9sYLFEvZ19dOk80m4LlhTmfyyceewhP0xyDsJpHTg6d6tWSh/rbIXu+y FKbWYO7yPTvAKQFLSLahSfdwvqaeDxdBDKQK468lmkjWo0W161jJp9VkwCm+u9Q8uX4vA 9QC19xo3/W+UFmJ/BXdEm4aAnZU0jrxnF1q2L6gsVa414MLKu872zkUeV+Bn4ek6SGQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=IOjOpEEg; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46B55606A31C; Sun, 29 Nov 2026 15:49:04 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46B55606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=uPed5hIulrepuZzJu1COwE7f9jRJd7rJTkASXzMCjJ4=; b=IOjOpEEgYT8/SlgSN2oOBDfFAH cmh4fp4jAHwggMxPv6pOtL+DJvCQbEshxnfTY0iKna8Ursg6ja3cjEkohek0r+1yxNlC7LZn8fPQl CB6hHY3cwSjU1WiQ/V+NBwPf/9TPaWYWgVW+jUtKSrpZtH7r26oE5wHE+17clTg+1nGQ=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXh93-002AI7-AX; Sun, 29 Nov 2026 16:48:53 +0100 X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Richard Cochran <richardcochran@gmail.com>, Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>