Re: [PATCH net v2] net: lan966x: Fix the initialization of taprio
From: Andrew Lunn
Date: Wed Nov 19 2025 - 14:53:17 EST
> +#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?
Andrew