summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorsurendra <kr494167@gmail.com>2026-07-20 16:06:06 +0530
committerDaniel Lezcano <daniel.lezcano@kernel.org>2026-08-07 17:18:53 +0200
commit68b78ad1e3533c1330dc9b7517947491c1a909c3 (patch)
tree23fc026711e95743ed8de26a5f9775f325a2df14 /tools/perf/scripts/python
parentcb0ec27efac2aaf92393ad563a35fb6f00d0a6cd (diff)
downloadlinux-68b78ad1e3533c1330dc9b7517947491c1a909c3.tar.gz
linux-68b78ad1e3533c1330dc9b7517947491c1a909c3.zip
thermal/drivers/spacemit: Validate clamped trip thresholds
k1_tsensor_set_trips() checks the requested trip temperatures before converting them to the sensor register representation. Distinct out-of-range temperatures can clamp to the same hardware value, leaving the sensor with an invalid low/high threshold pair. Validate the ordering after conversion and clamping. Fixes: 296a977f2bac ("thermal/drivers/spacemit/k1: Add thermal sensor support") Signed-off-by: surendra <kr494167@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> Link: https://patch.msgid.link/20260720103606.93924-1-kr494167@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions