Skip to contentSkip to conversation

PATCH: hwmon-fschmd-new-driver-v3.patch

lm-sensors Hans de Goede 3 participants 3 messages Oct 9, 2007 – Oct 11, 2007 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

Hi all,

This patch adds a new merged driver for FSC sensor chips, it merges the fscher and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall chips.

This 3rd version of the patch has a few issues found during review of the fixed 2nd version, thanks to Jean Delvare!

---

Jean, I've also attached a diff to the previous patch for easy review. Mark please apply once acked by Jean.

Regards,

Hans

This patch adds a new merged driver for FSC sensor chips, it merges the fscher and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall chips.

This 3rd version of the patch has a few issues found during review of the fixed 2nd version, thanks to Jean Delvare!

drivers/hwmon/Kconfig renamed from drivers/hwmon/Kconfig.fschmd +14 -0
diff -up linux-2.6.22.x86_64/drivers/hwmon/Kconfig.fschmd linux-2.6.22.x86_64/drivers/hwmon/Kconfig
@@ -236,6 +236,20 @@ config SENSORS_FSCPOS
 	  This driver can also be built as a module.  If so, the module
 	  will be called fscpos.
 
+config SENSORS_FSCHMD
+	tristate "FSC Poseidon, Scylla, Hermes, Heimdall and Heracles"
+	depends on X86 && I2C && EXPERIMENTAL
+	help
+	  If you say yes here you get support for various Fujitsu Siemens
+	  Computers sensor chips.
+
+	  This is a new merged driver for FSC sensor chips which is intended
+	  as a replacment for the fscpos, fscscy and fscher drivers and adds
+	  support for several other FCS sensor chips.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called fschmd.
+
 config SENSORS_GL518SM
 	tristate "Genesys Logic GL518SM"
 	depends on I2C
drivers/hwmon/fschmd.c new file +778 -0

778 lines not on this page · raw message

drivers/hwmon/Makefile renamed from drivers/hwmon/Makefile.fschmd +1 -0
diff -up linux-2.6.22.x86_64/drivers/hwmon/Makefile.fschmd linux-2.6.22.x86_64/drivers/hwmon/Makefile
@@ -30,6 +30,7 @@ obj-$(CONFIG_SENSORS_DME1737)	+= dme1737
 obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o
 obj-$(CONFIG_SENSORS_F71805F)	+= f71805f.o
 obj-$(CONFIG_SENSORS_FSCHER)	+= fscher.o
+obj-$(CONFIG_SENSORS_FSCHMD)	+= fschmd.o
 obj-$(CONFIG_SENSORS_FSCPOS)	+= fscpos.o
 obj-$(CONFIG_SENSORS_GL518SM)	+= gl518sm.o
 obj-$(CONFIG_SENSORS_GL520SM)	+= gl520sm.o
hwmon-fschmd-new-driver-v3.patch renamed from hwmon-fschmd-new-driver-v2.patch +4 -5
@@ -2,9 +2,8 @@
 and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall
 chips.
 
-This version of the patch has had all issues found during the review by Jean
-Delvare addressed:
-http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021396.html
+This 3rd version of the patch has a few issues found during review of the fixed
+2nd version, thanks to Jean Delvare!
 
 Signed-off-by: Hans de Goede <[email protected]>
 diff -up linux-2.6.22.x86_64/drivers/hwmon/Kconfig.fschmd linux-2.6.22.x86_64/drivers/hwmon/Kconfig
@@ -457,7 +456,7 @@
 +{
 +	struct fschmd_data *data = fschmd_update_device(dev);
 +
-+	if (data->global_control & 0x01)
++	if (data->global_control & FSCHMD_CONTROL_ALERT_LED_MASK)
 +		return sprintf(buf, "1\n");
 +	else
 +		return sprintf(buf, "0\n");
@@ -479,7 +478,7 @@
 +	else
 +		reg &= ~FSCHMD_CONTROL_ALERT_LED_MASK;
 +
-+	i2c_smbus_write_byte_data(&data->client, FSCHMD_REG_CONTROL, v);
++	i2c_smbus_write_byte_data(&data->client, FSCHMD_REG_CONTROL, reg);
 +
 +	data->global_control = reg;
 +

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

Acked-by
#1 lore raw

Hi Hans,

Quoted 8 lines · Hans de Goede

This patch adds a new merged driver for FSC sensor chips, it merges the fscher and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall chips.

This 3rd version of the patch has a few issues found during review of the fixed 2nd version, thanks to Jean Delvare!

Looks alright now.

Quoted 3 lines

---

Jean, I've also attached a diff to the previous patch for easy review.

I appreciate the effort, but next time, don't bother: "quilt snapshot" does the job at my end.

Signature · 9 lines
Jean Delvare




_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Hans de Goede

Hi:

Quoted 14 lines · Jean Delvare

Hi Hans,

Quoted 8 lines · Hans de Goede

This patch adds a new merged driver for FSC sensor chips, it merges the fscher and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall chips.

This 3rd version of the patch has a few issues found during review of the fixed 2nd version, thanks to Jean Delvare!

Looks alright now.

Quoted 8 lines
Quoted 3 lines

---

Jean, I've also attached a diff to the previous patch for easy review.

I appreciate the effort, but next time, don't bother: "quilt snapshot" does the job at my end.

Seconded; git makes it easy see this if I need it. Also, having two patches in a single email confuses git's mail handling functions. Anyway, it's applied to hwmon-2.6.git/testing with customary whitespace cleanups; thanks.

Signature · 8 lines
Mark M. Hoffman
[email protected]


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