Re: [PATCH net v2] net: lan966x: Fix the initialization of taprio

From: Horatiu Vultur

Date: Thu Nov 20 2025 - 02:51:36 EST


The 11/19/2025 20:53, Andrew Lunn wrote:
>
> > +#define LAN9X66_CLOCK_RATE 165617754
>
> You add a #define
>
> > +
> > #define LAN966X_MAX_PTP_ID 512
> >
> > /* Represents 1ppm adjustment in 2^59 format with 6.037735849ns as reference
> > @@ -1126,5 +1129,5 @@ void lan966x_ptp_rxtstamp(struct lan966x *lan966x, struct sk_buff *skb,
> > u32 lan966x_ptp_get_period_ps(void)
> > {
> > /* This represents the system clock period in picoseconds */
> > - return 15125;
> > + return PICO / 165617754;
>
> and then don't use it?

Argh... that is just a stupid mistake.
I will update in the next version.

>
> Andrew

--
/Horatiu