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 <ma…@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