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

From: Andrew Lunn

Date: Tue Nov 18 2025 - 14:20:18 EST


On Mon, Nov 17, 2025 at 03:43:09PM +0100, Horatiu Vultur wrote:
> To initialize the taprio block in lan966x, it is required to configure
> the register REVISIT_DLY. The purpose of this register is to set the
> delay before revisit the next gate and the value of this register depends
> on the system clock. The problem is that the we calculated wrong the value
> of the system clock period in picoseconds. The actual system clock is
> ~165.617754MHZ and this correspond to a period of 6038 pico seconds and
> not 15125 as currently set.

Is the system clock available as a linux clock? Can you do a
clk_get_rate() on it?

Andrew