Thread (14 messages) 14 messages, 3 authors, 2023-08-30

Re: [PATCH net-next 7/7] net: stmmac: Make PTP reference clock references more clear

From: Richard Cochran <richardcochran@gmail.com>
Date: 2023-08-28 02:16:31
Also in: linux-arm-kernel, lkml

On Thu, Aug 24, 2023 at 01:32:58PM -0500, Andrew Halaney wrote:
quoted hunk ↗ jump to hunk
@@ -34,14 +34,14 @@ static void config_sub_second_increment(void __iomem *ioaddr,
 	 * increment to twice the number of nanoseconds of a clock cycle.
 	 * The calculation of the default_addend value by the caller will set it
 	 * to mid-range = 2^31 when the remainder of this division is zero,
-	 * which will make the accumulator overflow once every 2 ptp_clock
+	 * which will make the accumulator overflow once every 2 clk_ptp_rate
 	 * cycles, adding twice the number of nanoseconds of a clock cycle :
-	 * 2 * NSEC_PER_SEC / ptp_clock.
+	 * 2 * NSEC_PER_SEC / clk_ptp_rate.
 	 */
This part of the driver is complete garbage.  But that isn't your fault.

Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help