]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: net: stmmac: handle start time set in the past for flexible PPS
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Mon, 1 Sep 2025 09:16:28 +0000 (11:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Sep 2025 23:51:08 +0000 (16:51 -0700)
commitadbe2cfd8a93fdefb2bd238c1ccd22d2c40e8499
tree1c5816e763b5f20ae9d09a7c99b1b6f7c2c84001
parent96c88268b79bc0af2014b8732a438a7afc4fff0d
drivers: net: stmmac: handle start time set in the past for flexible PPS

In case the time arguments used for flexible PPS signal generation are in
the past, consider the arguments to be a time offset relative to the MAC
system time.

This way, past time use case is handled and it avoids the tedious work
of passing an absolute time value for the flexible PPS signal generation
while not breaking existing scripts that may rely on this behavior.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Link: https://patch.msgid.link/20250901-relative_flex_pps-v4-2-b874971dfe85@foss.st.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c