mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
The current implementation of tsys01_crc_valid() incorrectly sums the
first word (n_prom[0]) repeatedly instead of iterating over the 8 words
retrieved from the PROM. This leads to a checksum mismatch and probe
failure on hardware.
According to the TSYS01 datasheet, the PROM consists of 8 words. A valid
check must iterate through all 8 words to verify the integrity of the
calibration data. The current driver only checks the first word 8 times.
Note: This fix was identified during a code audit and is based on
datasheet specifications. It has not been tested on real hardware.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| hid-sensor-temperature.c | ||
| iqs620at-temp.c | ||
| Kconfig | ||
| ltc2983.c | ||
| Makefile | ||
| max30208.c | ||
| max31856.c | ||
| max31865.c | ||
| maxim_thermocouple.c | ||
| mcp9600.c | ||
| mlx90614.c | ||
| mlx90632.c | ||
| mlx90635.c | ||
| tmp006.c | ||
| tmp007.c | ||
| tmp117.c | ||
| tsys01.c | ||
| tsys02d.c | ||