Skip to contentSkip to conversation

hwmon: (w83627ehf) Skip reading unused

PATCH In review Jean Delvare 2 participants 5 messages Oct 13, 2011 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 hwmon: (w83627ehf) Skip reading unused

When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.

---
This patch and the following one have been sitting on my drive for too long, it's about time to get them reviewed and merged.

 drivers/hwmon/w83627ehf.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/hwmon/w83627ehf.c +3 -0
@@ -770,6 +770,9 @@ static struct w83627ehf_data *w83627ehf_
 
 		/* Measured voltages and limits */
 		for (i = 0; i < data->in_num; i++) {
+			if ((i = 6) && data->in6_skip)
+				continue;
+
 			data->in[i] = w83627ehf_read_value(data,
 				      W83627EHF_REG_IN(i));
 			data->in_min[i] = w83627ehf_read_value(data,
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/2
#1 lore raw
Quoted 5 lines · Jean Delvare

When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.

Do you want me to apply this series of patches ?

Thanks,
Guenter

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

#2 lore raw
In reply to Jean Delvare
Quoted 8 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare

When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.

Thanks.

Quoted 1 line

Do you want me to apply this series of patches ?

Yes please!

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Jean Delvare
Quoted 8 lines · Jean Delvare
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare

When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.

Quoted 8 lines
Quoted 1 line

Thanks.

Quoted 1 line

Do you want me to apply this series of patches ?

Yes please!

Both applied to -next. If you prefer to have it in 3.1, please let me know.

Thanks,
Guenter

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

#4 lore raw
In reply to Jean Delvare
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Jean Delvare
Quoted 8 lines · Guenter Roeck
Quoted 5 lines · Jean Delvare

When in6 is missing, don't read the corresponding registers, it's a waste of time. The logic is similar to what we do for fans and temperatures.

Quoted 8 lines
Quoted 6 lines

Thanks.

Quoted 1 line

Do you want me to apply this series of patches ?

Yes please!

Both applied to -next. If you prefer to have it in 3.1, please let me know.

next is fine, thank you.

Signature · 6 lines
Jean Delvare

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