Skip to content

Commit

Permalink
hwmon: (ltc4245) Clear faults at startup
Browse files Browse the repository at this point in the history
When power is applied to the ltc4245 chip it sometimes reports spurious
faults, which are exposed as alarms in the hwmon output. Clear the fault
register when the driver is installed to clear the alarms.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Ira W. Snyder authored and Jean Delvare committed Sep 23, 2009
1 parent b6b9d69 commit 58f055e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hwmon/ltc4245.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ static int ltc4245_probe(struct i2c_client *client,
mutex_init(&data->update_lock);

/* Initialize the LTC4245 chip */
/* TODO */
i2c_smbus_write_byte_data(client, LTC4245_FAULT1, 0x00);
i2c_smbus_write_byte_data(client, LTC4245_FAULT2, 0x00);

/* Register sysfs hooks */
ret = sysfs_create_group(&client->dev.kobj, &ltc4245_group);
Expand Down

0 comments on commit 58f055e

Please sign in to comment.