Skip to contentSkip to conversation

hwmon: (it87) Fix in7 voltage display

PATCH In review Guenter Roeck 2 participants 3 messages Apr 4, 2015 – Apr 9, 2015

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 1/22 hwmon: (it87) Fix in7 voltage display

Commit a6ebb8b09421 ("hwmon: (it87) Introduce feature flag to reflect internal in7 sensor") actually caused in7 to never be recognized as internal.

---
 drivers/hwmon/it87.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/it87.c +1 -1
index 4763d1157a5e..32180aaa4ac6 100644
@@ -1910,7 +1910,7 @@ static int __init it87_find(unsigned short *address,
 		sio_data->internal |= (1 << 1);
 
 	/* in8 (Vbat) is always internal */
-	sio_data->internal = (1 << 2);
+	sio_data->internal |= (1 << 2);
 
 	/* Only the IT8603E has in9 */
 	if (sio_data->type != it8603)
Signature · 7 lines
2.1.0


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

Hi Guenter,

Quoted 13 lines · Guenter Roeck

Commit a6ebb8b09421 ("hwmon: (it87) Introduce feature flag to reflect internal in7 sensor") actually caused in7 to never be recognized as internal.

---
 drivers/hwmon/it87.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/it87.c +0 -0
index 4763d1157a5e..32180aaa4ac6 100644

drivers/hwmon/it87.c static int __init it87_find(unsigned short *address, · line 1916

Quoted 8 lines
drivers/hwmon/it87.c +1 -1
@@ -1910,7 +1910,7 @@ static int __init it87_find(unsigned short *address,
 		sio_data->internal |= (1 << 1);
 
 	/* in8 (Vbat) is always internal */
-	sio_data->internal = (1 << 2);
+	sio_data->internal |= (1 << 2);
 
 	/* Only the IT8603E has in9 */
 	if (sio_data->type != it8603)

Meanwhile you merged that fix in patch "hwmon: (it87) Introduce feature flag to reflect internal in7 sensor" so this patch is no longer relevant, right?

Signature · 7 lines
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author maintainer
#2 lore raw
In reply to Guenter Roeck
Quoted 22 lines · Jean Delvare

Hi Guenter,

Quoted 19 lines · Guenter Roeck

Commit a6ebb8b09421 ("hwmon: (it87) Introduce feature flag to reflect internal in7 sensor") actually caused in7 to never be recognized as internal.

---
  drivers/hwmon/it87.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/it87.c +1 -1
index 4763d1157a5e..32180aaa4ac6 100644
@@ -1910,7 +1910,7 @@ static int __init it87_find(unsigned short *address,
  		sio_data->internal |= (1 << 1);
 
  	/* in8 (Vbat) is always internal */
-	sio_data->internal = (1 << 2);
+	sio_data->internal |= (1 << 2);
 
Quoted 7 lines

drivers/hwmon/it87.c static int __init it87_find(unsigned short *address, · line 1916

Quoted 2 lines
drivers/hwmon/it87.c +0 -0
  	/* Only the IT8603E has in9 */
  	if (sio_data->type != it8603)

Meanwhile you merged that fix in patch "hwmon: (it87) Introduce feature flag to reflect internal in7 sensor" so this patch is no longer relevant, right?

Yes.

Thanks,
Guenter

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