mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +00:00
Re-enable VLM and TMS monitoring if needed (init>0).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2524 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3e489ccb78
commit
0ca7f76745
1 file changed
+29
-1
+29
-1
@@ -609,7 +609,7 @@ int pc87360_detect(struct i2c_adapter *adapter, int address,
|
||||
#endif
|
||||
}
|
||||
|
||||
if (init >= 0)
|
||||
if (init > 0)
|
||||
pc87360_init_client(new_client);
|
||||
|
||||
if ((i = i2c_register_entry((struct i2c_client *) new_client,
|
||||
@@ -725,6 +725,34 @@ static void pc87360_init_client(struct i2c_client *client)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (data->innr) {
|
||||
reg = pc87360_read_value(data, LD_IN, NO_BANK,
|
||||
PC87365_REG_IN_CONFIG);
|
||||
if (reg & 0x01) {
|
||||
#ifdef DEBUG
|
||||
printk(KERN_DEBUG "pc87360.o: Forcibly "
|
||||
"enabling monitoring (VLM)\n");
|
||||
#endif
|
||||
pc87360_write_value(data, LD_IN, NO_BANK,
|
||||
PC87365_REG_IN_CONFIG,
|
||||
reg & 0xFE);
|
||||
}
|
||||
}
|
||||
|
||||
if (data->tempnr) {
|
||||
reg = pc87360_read_value(data, LD_TEMP, NO_BANK,
|
||||
PC87365_REG_TEMP_CONFIG);
|
||||
if (reg & 0x01) {
|
||||
#ifdef DEBUG
|
||||
printk(KERN_DEBUG "pc87360.o: Forcibly "
|
||||
"enabling monitoring (TMS)\n");
|
||||
#endif
|
||||
pc87360_write_value(data, LD_TEMP, NO_BANK,
|
||||
PC87365_REG_TEMP_CONFIG,
|
||||
reg & 0xFE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void pc87360_update_client(struct i2c_client *client)
|
||||
|
||||
Reference in new issue
Block a user