lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ffa6ba0a-750e-4281-826d-f56c4f5ea433@lunn.ch>
Date: Wed, 19 Nov 2025 20:53:09 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Horatiu Vultur <horatiu.vultur@...rochip.com>
Cc: UNGLinuxDriver@...rochip.com, andrew+netdev@...n.ch,
	davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
	pabeni@...hat.com, richardcochran@...il.com, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH net v2] net: lan966x: Fix the initialization of taprio

> +#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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ