diff options
| author | surendra <kr494167@gmail.com> | 2026-07-20 16:06:06 +0530 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2026-08-07 17:18:53 +0200 |
| commit | 68b78ad1e3533c1330dc9b7517947491c1a909c3 (patch) | |
| tree | 23fc026711e95743ed8de26a5f9775f325a2df14 /include/linux/timerqueue.h | |
| parent | cb0ec27efac2aaf92393ad563a35fb6f00d0a6cd (diff) | |
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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
