aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2025-05-19 17:49:44 +0000
committerSuzuki K Poulose <[email protected]>2025-05-20 15:16:15 +0000
commitee811bc733be5c57a2bfecdf2f6f5d4db466200a (patch)
treedcad9cd079de443107136e1f0bd0c97cbac02bd9 /net/lapb/lapb_timer.c
parentcoresight: tmc: fix failure to disable/enable ETF after reading (diff)
downloadkernel-ee811bc733be5c57a2bfecdf2f6f5d4db466200a.tar.gz
kernel-ee811bc733be5c57a2bfecdf2f6f5d4db466200a.zip
coresight: etm4x: Fix timestamp bit field handling
Timestamps in the trace data appear as all zeros on recent kernels, although the feature works correctly on old kernels (e.g., v6.12). Since commit c382ee674c8b ("arm64/sysreg/tools: Move TRFCR definitions to sysreg"), the TRFCR_ELx_TS_{VIRTUAL|GUEST_PHYSICAL|PHYSICAL} macros were updated to remove the bit shift. As a result, the driver no longer shifts bits when operates the timestamp field. Fix this by using the FIELD_PREP() and FIELD_GET() helpers. Reported-by: Tamas Zsoldos <[email protected]> Fixes: c382ee674c8b ("arm64/sysreg/tools: Move TRFCR definitions to sysreg") Signed-off-by: Leo Yan <[email protected]> Reviewed-by: James Clark <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions