]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: intel: populate entire system_counterval_t in get_time_fn() callback
authorMarkus Blöchl <markus@blochl.de>
Sun, 13 Jul 2025 20:21:41 +0000 (22:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Jul 2025 23:21:59 +0000 (16:21 -0700)
commite6176ab107ec6e57a752a97ba9f7c34a23034262
tree1b6a17a9db833b588186c7cf291972ebf00a0b51
parentae2256f9677b3c784bad99d4198d27b1a62fabc9
net: stmmac: intel: populate entire system_counterval_t in get_time_fn() callback

get_time_fn() callback implementations are expected to fill out the
entire system_counterval_t struct as it may be initially uninitialized.

This broke with the removal of convert_art_to_tsc() helper functions
which left use_nsecs uninitialized.

Initially assign the entire struct with default values.

Fixes: f5e1d0db3f02 ("stmmac: intel: Remove convert_art_to_tsc()")
Cc: stable@vger.kernel.org
Signed-off-by: Markus Blöchl <markus@blochl.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250713-stmmac_crossts-v1-1-31bfe051b5cb@blochl.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c