mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Birger Koblitz <mail@birger-koblitz.de>
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
Subject: Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP
Date: Sun, 29 Nov 2026 16:48:53 +0100	[thread overview]
Message-ID: <b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch> (raw)
In-Reply-To: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>

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

  reply	other threads:[~2026-11-29 15:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  9:29 [PATCH net-next 0/3] net: usb: ax88179: Add support for PTP Birger Koblitz
2026-11-29  9:29 ` [PATCH net-next 1/3] net: usb: ax88179: Add PTP data structures and definitions Birger Koblitz
2026-11-29  9:29 ` [PATCH net-next 2/3] net: usb: ax88179: Add PTP Implementation Birger Koblitz
2026-11-29 18:31   ` Manuel Ebner
2026-11-29  9:29 ` [PATCH net-next 3/3] net: usb: ax88179: Enable PTP Birger Koblitz
2026-11-29 15:48   ` Andrew Lunn [this message]
2026-11-29 17:24     ` Birger Koblitz
2026-11-29 21:09       ` Andrew Lunn
2026-11-29 21:18   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0be6f63-f8c1-4d6f-99a1-bf709e70dfd1@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mail@birger-koblitz.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®