Skip to content
Commit 2a5970d5 authored by Sagi Maimon's avatar Sagi Maimon Committed by Jakub Kicinski
Browse files

ptp: ocp: fix start time alignment in ptp_ocp_signal_set



In ptp_ocp_signal_set, the start time for periodic signals is not
aligned to the next period boundary. The current code rounds up the
start time and divides by the period but fails to multiply back by
the period, causing misaligned signal starts. Fix this by multiplying
the rounded-up value by the period to ensure the start time is the
closest next period.

Fixes: 4bd46bb0 ("ptp: ocp: Use DIV64_U64_ROUND_UP for rounding.")
Signed-off-by: default avatarSagi Maimon <maimon.sagi@gmail.com>
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250415053131.129413-1-maimon.sagi@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7e49e644
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment