[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aacc11bb-64db-9402-ccc4-889954b034d7@novek.ru>
Date: Sun, 15 May 2022 03:16:08 +0100
From: Vadim Fedorenko <vfedorenko@...ek.ru>
To: Jonathan Lemon <jonathan.lemon@...il.com>, netdev@...r.kernel.org
Cc: richardcochran@...il.com, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, edumazet@...gle.com, kernel-team@...com
Subject: Re: [PATCH net v2] ptp: ocp: have adjtime handle negative delta_ns
correctly
On 13.05.2022 23:52, Jonathan Lemon wrote:
> delta_ns is a s64, but it was being passed ptp_ocp_adjtime_coarse
> as an u64. Also, it turns out that timespec64_add_ns() only handles
> positive values, so perform the math with set_normalized_timespec().
>
> Fixes: 90f8f4c0e3ce ("ptp: ocp: Add ptp_ocp_adjtime_coarse for large adjustments")
> Suggested-by: Vadim Fedorenko <vfedorenko@...ek.ru>
> Signed-off-by: Jonathan Lemon <jonathan.lemon@...il.com>
Acked-by: Vadim Fedorenko <vfedorenko@...ek.ru>
Powered by blists - more mailing lists