acrn-kernel/drivers/hwmon
Baskaran Kannan e146503ac6 hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature
Industrial processor i3255 supports temperatures -40 deg celcius
to 105 deg Celcius. The current implementation of k10temp_read_temp
rounds off any negative temperatures to '0'. To fix this,
the following changes have been made.

A flag 'disp_negative' is added to struct k10temp_data to support
AMD i3255 processors. Flag 'disp_negative' is set if 3255 processor
is found during k10temp_probe.  Flag 'disp_negative' is used to
determine whether to round off negative temperatures to '0' in
k10temp_read_temp.

Signed-off-by: Baskaran Kannan <Baski.Kannan@amd.com>
Link: https://lore.kernel.org/r/20230727162159.1056136-1-Baski.Kannan@amd.com
Fixes: aef17ca127 ("hwmon: (k10temp) Only apply temperature offset if result is positive")
Cc: stable@vger.kernel.org
[groeck: Fixed multi-line comment]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2023-07-27 09:41:07 -07:00
..
occ hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
peci
pmbus hwmon: (pmbus_core) Fix Deadlock in pmbus_regulator_get_status 2023-07-26 20:34:30 -07:00
Kconfig hwmon: add HP WMI Sensors driver 2023-06-08 06:41:19 -07:00
Makefile hwmon: add HP WMI Sensors driver 2023-06-08 06:41:19 -07:00
abituguru.c
abituguru3.c
acpi_power_meter.c
ad7314.c
ad7414.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ad7418.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adc128d818.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adcxx.c
adm1021.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm1025.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm1026.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm1029.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm1031.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm1177.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adm9240.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ads7828.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ads7871.c
adt7x10.c
adt7x10.h
adt7310.c
adt7410.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adt7411.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adt7462.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adt7470.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
adt7475.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
aht10.c hwmon: (aht10) Add support for compatible aht20 2023-06-08 06:41:18 -07:00
amc6821.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
applesmc.c
aquacomputer_d5next.c hwmon: (aquacomputer_d5next) Fix incorrect PWM value readout 2023-07-15 09:14:43 -07:00
as370-hwmon.c
asb100.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
asc7621.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
aspeed-pwm-tacho.c
asus-ec-sensors.c hwmon: (asus-ec-sensors) add ROG Crosshair X670E Hero. 2023-06-08 06:41:16 -07:00
asus_atk0110.c
asus_wmi_sensors.c
atxp1.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
axi-fan-control.c
bt1-pvt.c
bt1-pvt.h
coretemp.c
corsair-cpro.c
corsair-psu.c hwmon: (corsair-psu) update Series 2022 and 2023 support 2023-06-24 08:47:29 -07:00
da9052-hwmon.c
da9055-hwmon.c
dell-smm-hwmon.c
dme1737.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
drivetemp.c
ds620.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ds1621.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
emc6w201.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
emc1403.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
emc2103.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
emc2305.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
f71805f.c
f71882fg.c hwmon: (f71882fg) prevent possible division by zero 2023-05-19 05:59:37 -07:00
f75375s.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
fam15h_power.c
fschmd.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ftsteutates.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
g760a.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
g762.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
gl518sm.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
gl520sm.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
gpio-fan.c
gsc-hwmon.c hwmon: (gsc-hwmon) fix fan pwm temperature scaling 2023-06-08 06:35:52 -07:00
gxp-fan-ctrl.c
hih6130.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
hp-wmi-sensors.c hwmon: (hp-wmi-sensors) fix debugfs check 2023-06-08 06:42:53 -07:00
hwmon-vid.c
hwmon.c hwmon: (core) Finish renaming groups parameter in API to extra_groups 2023-06-08 06:41:18 -07:00
i5k_amb.c
i5500_temp.c
ibmaem.c
ibmpex.c
ibmpowernv.c
iio_hwmon.c
ina2xx.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ina209.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ina238.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ina3221.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
intel-m10-bmc-hwmon.c mfd: intel-m10-bmc: Move m10bmc_sys_read() away from header 2023-06-15 09:19:36 +01:00
it87.c hwmon: (it87) Generalise support for FAN_CTL ON/OFF 2023-06-08 06:44:14 -07:00
jc42.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
k8temp.c
k10temp.c hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature 2023-07-27 09:41:07 -07:00
lan966x-hwmon.c
lineage-pem.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm63.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm70.c
lm73.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm75.c hwmon: (lm75) Use maple tree register cache 2023-06-10 07:37:02 -07:00
lm75.h
lm77.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm78.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm80.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm83.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm85.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm87.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm90.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm92.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm93.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm95234.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm95241.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
lm95245.c hwmon: (lm95245) Use maple tree register cache 2023-06-10 07:37:02 -07:00
lochnagar-hwmon.c
ltc2945.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc2947-core.c
ltc2947-i2c.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc2947-spi.c
ltc2947.h
ltc2990.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc2992.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4151.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4215.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4222.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4245.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4260.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltc4261.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ltq-cputemp.c
max127.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max197.c
max1111.c ARM: pxa: fix missing-prototypes warnings 2023-05-26 13:33:05 +02:00
max1619.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max1668.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6620.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6621.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6639.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6642.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6650.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max6697.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max16065.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max31722.c
max31730.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max31760.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max31790.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
max31827.c hwmon: max31827: Switch back to use struct i2c_driver::probe 2023-06-26 06:45:54 -07:00
mc34vr500.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
mc13783-adc.c
mcp3021.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
menf21bmc_hwmon.c
mlxreg-fan.c
mr75203.c
nct6683.c hwmon: (nct6683) Add another customer ID for NCT6687D sensor chip on some MSI boards. 2023-06-08 06:41:17 -07:00
nct6775-core.c hwmon: (nct6775) Fix IN scaling factors for 6798/6799 2023-07-19 12:56:12 -07:00
nct6775-i2c.c hwmon: (nct6755) Add support for NCT6799D 2023-06-17 20:50:30 -07:00
nct6775-platform.c hwmon: (nct6775) Fix register for nct6799 2023-07-15 09:12:15 -07:00
nct6775.h hwmon: (nct6775) Fix IN scaling factors for 6798/6799 2023-07-19 12:56:12 -07:00
nct7802.c hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled 2023-07-24 07:01:40 -07:00
nct7904.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
npcm750-pwm-fan.c
nsa320-hwmon.c
ntc_thermistor.c
nzxt-kraken2.c
nzxt-smart2.c
oxp-sensors.c hwmon: (oxp-sensors) Move tt_toggle attribute to dev_groups 2023-07-18 19:44:19 -07:00
pc87360.c
pc87427.c
pcf8591.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
powr1220.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
pwm-fan.c
raspberrypi-hwmon.c
sbrmi.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sbtsi_temp.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sch56xx-common.c
sch56xx-common.h
sch5627.c
sch5636.c
scmi-hwmon.c
scpi-hwmon.c
sfctemp.c
sht3x.c hwmon: (sht3x) complement sysfs interface for sts3x 2023-06-17 09:14:55 -07:00
sht4x.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sht15.c
sht21.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
shtc1.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sis5595.c
sl28cpld-hwmon.c
smm665.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
smpro-hwmon.c
smsc47b397.c
smsc47m1.c
smsc47m192.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sparx5-temp.c
stts751.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
sy7636a-hwmon.c
tc74.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tc654.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
thmc50.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tmp102.c hwmon: (tmp102) Use maple tree register cache 2023-06-10 07:37:02 -07:00
tmp103.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tmp108.c hwmon: (tmp108) Use maple tree register cache 2023-06-10 07:37:02 -07:00
tmp401.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tmp421.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tmp464.c hwmon: (tmp464) Use maple tree register cache 2023-06-10 07:37:02 -07:00
tmp513.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
tps23861.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
ultra45_env.c
vexpress-hwmon.c
via-cputemp.c
via686a.c
vt1211.c
vt8231.c
w83l785ts.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83l786ng.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83627ehf.c
w83627hf.c
w83773g.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83781d.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83791d.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83792d.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83793.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
w83795.c hwmon: Switch i2c drivers back to use .probe() 2023-06-08 06:41:17 -07:00
wm831x-hwmon.c
wm8350-hwmon.c
xgene-hwmon.c