Skip to contentSkip to conversation

PATCH: f71882g: check for hwmon powerdown state [2/4]

lm-sensors Applied Hans de Goede 2 participants 2 messages Dec 14, 2008 – Dec 15, 2008 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

Hi Jean,

More f8000 prep work. Take over the checking if the hwmon part is not powered down from the standalone f8000 driver.

This check is valid for all supported models.

Thanks & Regards,

Hans

More f8000 prep work. Take over the checking if the hwmon part is not powered down from the standalone f8000 driver.

This check is valid for all supported models.

drivers/hwmon/f71882fg.c renamed from drivers/hwmon/f71882fg.c.09-applied +5 -0
@@ -1500,6 +1500,11 @@
 	platform_set_drvdata(pdev, data);
 
 	start_reg = f71882fg_read8(data, F71882FG_REG_START);
+	if (start_reg & 0x04) {
+		dev_warn(&pdev->dev, "Hardware monitor is powered down\n");
+		err = -ENODEV;
+		goto exit_free;
+	}
 	if (!(start_reg & 0x03)) {
 		dev_warn(&pdev->dev, "Hardware monitoring not activated\n");
 		err = -ENODEV;

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

Applied
#1 lore raw

Re: [lm-sensors] PATCH: f71882g: check for hwmon powerdown state

Quoted 8 lines · Hans de Goede

Hi Jean,

More f8000 prep work. Take over the checking if the hwmon part is not powered down from the standalone f8000 driver.

This check is valid for all supported models.

Applied, thanks.

Signature · 6 lines
Jean Delvare

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