[v1,1/1] hwmon: (nct7904) Fix the incorrect rang of temperature limitation registers.

2020-05-12 Thread Amy.Shih
From: Amy Shih The format of temperature limitation registers are 8-bit 2's complement and the range is -128~127. Converts the reading value to signed char to fix the incorrect range of temperature limitation registers. Signed-off-by: Amy Shih --- drivers/hwmon/nct7904.c | 4 +++- 1 file chang

[v1,1/1] hwmon: (nct7904) Add to read all of the SMI status registers in probe function.

2020-05-11 Thread Amy.Shih
From: Amy Shih When nct7904 power up, it compares current sensor readings within the default threshold immediately, thus some of SMI status registers would get non zero values cause the false alarms on first reading. Add to read all of the SMI status registers in probe function to clear the alarm

[v6,1/1] hwmon: (nct7904) Fix incorrect temperature limitation register setting of LTD.

2019-09-02 Thread Amy.Shih
From: "amy.shih" According to kernel hwmon sysfs-interface documentation, temperature critical max value, typically greater than corresponding temp_max values. Thus, reads the LTD_HV_HL (LTD HIGH VALUE HIGH LIMITATION) and LTD_LV_HL (LTD LOW VALUE HIGH LIMITATION) for case hwmon_tem

[v2 3/3] hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

2019-06-30 Thread Amy.Shih
From: "amy.shih" NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and temperature monitoring, and also supports reading of temperature sensor type which is thermal diode, thermistor, AMD SB-TSI or Intel PECI, thus add below s

[v4,1/1] hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

2019-06-12 Thread Amy.Shih
From: "amy.shih" NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and temperature monitoring, and also supports reading of temperature sensor type which is thermal diode, thermistor, AMD SB-TSI or Intel PECI, thus add below s

[PATCH] hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

2019-05-31 Thread Amy.Shih
From: "amy.shih" This patch do 2 jobs as described in below: 1. NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and temperature monitoring, add below sysfs nodes: -fan[1-*]_min -fan[1-*]_alarm -in[0-*]_min -in[0-*]_max -in[

[PATCH] hwmon: (nct7904) Add extra sysfs support for fan, voltage and tempearture. Fix the incorrect value of tcpu_mask in nct7904_data struct.

2019-05-30 Thread Amy.Shih
From: "amy.shih" This patch do 3 jobs as described in below: 1. NCT-7904D also supports reading of channel limitation registers and SMI status registers for fan, voltage and tempearture monitoring, add below sysfs nodes: -fan[1-*]_min -fan[1-*]_alarm -in[0-*]_min -in[0-*]_max -in[