Skip to contentSkip to conversation

hwmon: (pmbus/adm1275) Add support for

PATCH In review Guenter Roeck 2 participants 2 messages Aug 26, 2011 – Aug 28, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/4 hwmon: (pmbus/adm1275) Add support for

ADM1275 supports a second current limit, which can be configured as either lower or upper limit. Add support for it and report it as either lower or upper critical current limit.

Also replace error return code EINVAL for unsupported pages with ENXIO as this is more appropriate for the observed condition.

---
 Documentation/hwmon/adm1275   |    8 +++
 drivers/hwmon/pmbus/adm1275.c |   95 ++++++++++++++++++++++++++++++++++++++---
 2 files changed, 96 insertions(+), 7 deletions(-)
Documentation/hwmon/adm1275 +8 -0
index 097b3cc..c438c98 100644
@@ -60,5 +60,13 @@ curr1_label		"iout1"
 curr1_input		Measured current. From READ_IOUT register.
 curr1_max		Maximum current. From IOUT_OC_WARN_LIMIT register.
 curr1_max_alarm		Current high alarm. From IOUT_OC_WARN_LIMIT register.
+curr1_lcrit		Critical minimum current. Depending on the chip
+			configuration, either curr1_lcrit or curr1_crit is
+			supported, but not both.
+curr1_lcrit_alarm	Critical current low alarm.
+curr1_crit		Critical maximum current. Depending on the chip
+			configuration, either curr1_lcrit or curr1_crit is
+			supported, but not both.
+curr1_crit_alarm	Critical current high alarm.
 curr1_highest		Historical maximum current.
 curr1_reset_history	Write any value to reset history.
drivers/hwmon/pmbus/adm1275.c +88 -7

164 lines not on this page · raw message

Signature · 7 lines
1.7.3.1


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v2 3/4
#1 lore raw

Re: [lm-sensors] [PATCH v2 3/4] hwmon: (pmbus/adm1275) Add support

Quoted 7 lines · Guenter Roeck

ADM1275 supports a second current limit, which can be configured as either lower or upper limit. Add support for it and report it as either lower or upper critical current limit.

Also replace error return code EINVAL for unsupported pages with ENXIO as this is more appropriate for the observed condition.

Quoted 6 lines
---
 Documentation/hwmon/adm1275   |    8 +++
 drivers/hwmon/pmbus/adm1275.c |   95 ++++++++++++++++++++++++++++++++++++++---
 2 files changed, 96 insertions(+), 7 deletions(-)

(...)

Looks good.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors