summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>2026-09-14 09:41:07 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-15 18:25:06 -0700
commitf0ef4b1eaed000a304726a43091588e8426ba08a (patch)
treebb18ce1c7c5cdfd5df81f015f083943028d32719 /tools/perf/scripts/python/stackcollapse.py
parent3f118c8217c109fd13ca61caa301d72c483897ef (diff)
downloadlinux-f0ef4b1eaed000a304726a43091588e8426ba08a.tar.gz
linux-f0ef4b1eaed000a304726a43091588e8426ba08a.zip
net: stmmac: do not overwrite phc_index when no PTP clock is registered
stmmac_get_ts_info() reports phc_index as 0 when hardware timestamping is supported but no PTP clock has been registered yet (e.g. while the interface is down). Zero is a valid PHC index and would make userspace resolve the wrong clock; the absence of a clock should be reported as -1. The ethtool core already initializes phc_index to -1 before invoking the get_ts_info callback (ethtool_init_tsinfo()), so just drop the erroneous assignment. Fixes: 9364fa7fcf12 ("net: stmmac: Remove setting of RX software timestamp") Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com> Reviewed-by: Gal Pressman <gal@nvidia.com> Link: https://patch.msgid.link/20260914-stmmac-fix-phc_index-v2-1-bf3d90373fe4@oss.qualcomm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions