#
3ae6b163 |
| 19-Aug-2024 |
Cosmo Chou <chou.cosmo@gmail.com> |
hwmon: (pt5161l) Fix invalid temperature reading
The temperature reading function was using a signed long for the ADC code, which could lead to mishandling of invalid codes on 32-bit platforms. This
hwmon: (pt5161l) Fix invalid temperature reading
The temperature reading function was using a signed long for the ADC code, which could lead to mishandling of invalid codes on 32-bit platforms. This allowed out-of-range ADC codes to be incorrectly interpreted as valid values and used in temperature calculations.
Change adc_code to u32 to ensure that invalid ADC codes are correctly identified on all platforms.
Fixes: 1b2ca93cd059 ("hwmon: Add driver for Astera Labs PT5161L retimer") Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com> Message-ID: <20240819104630.2375441-1-chou.cosmo@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> (cherry picked from commit 7bbc079531fc38d401e1c4088d4981435a8828e3) Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
#
5de33a7e |
| 06-Feb-2024 |
Cosmo Chou <chou.cosmo@gmail.com> |
hwmon: Add driver for Astera Labs PT5161L retimer
This driver implements support for temperature monitoring of Astera Labs PT5161L series PCIe retimer chips.
This driver implementation originates f
hwmon: Add driver for Astera Labs PT5161L retimer
This driver implements support for temperature monitoring of Astera Labs PT5161L series PCIe retimer chips.
This driver implementation originates from the CSDK available at Link: https://github.com/facebook/openbmc/tree/helium/common/recipes-lib/retimer-v2.14 The communication protocol utilized is based on the I2C/SMBus standard.
Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com> Link: https://lore.kernel.org/r/20240206125420.3884300-2-chou.cosmo@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> (cherry picked from commit 1b2ca93cd0592b1fcbc6f8b64e02552bc15f4bb4) Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|