PATCH: hwmon-fschmd-add-fscsyl-v3.patch
This patch adds support for the FSC Syleus IC to the fschmd driver.
Many thanks to Fujitsu Siemens Computers for providing docs and a machine to test the driver on.
drivers/hwmon/Kconfig renamed from drivers/hwmon/Kconfig.orig +4 -3
@@ -343,11 +343,12 @@ config SENSORS_FSCPOS will be called fscpos. config SENSORS_FSCHMD - tristate "FSC Poseidon, Scylla, Hermes, Heimdall and Heracles" + tristate "Fujitsu Siemens Computers sensor chips" depends on X86 && I2C help - If you say yes here you get support for various Fujitsu Siemens - Computers sensor chips, including support for the integrated + If you say yes here you get support for the following Fujitsu + Siemens Computers (FSC) sensor chips: Poseidon, Scylla, Hermes, + Heimdall, Heracles and Syleus including support for the integrated watchdog. This is a merged driver for FSC sensor chips replacing the fscpos,
drivers/hwmon/fschmd.c renamed from drivers/hwmon/fschmd.c.orig +153 -59
484 lines not on this page · raw message
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Hans,
Quoted 1 line · Hans de Goede
This patch adds support for the FSC Syleus IC to the fschmd driver.
Not sure what you used to generate this patch, but it's improperly formatted and I just can't apply it. Please try again, in attachment maybe?
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 9 lines · Jean Delvare
Hi Hans,
Quoted 1 line · Hans de Goede
This patch adds support for the FSC Syleus IC to the fschmd driver.
Not sure what you used to generate this patch, but it's improperly formatted and I just can't apply it. Please try again, in attachment maybe?
Sorry,
I'm lately sending patches inline because most people prefer that, I guess my mail client (thunderbird) mangled the patch. Here it is again, this time attached.
Regards,
Hans
This patch adds support for the FSC Syleus IC to the fschmd driver.
Many thanks to Fujitsu Siemens Computers for providing docs and a machine to test the driver on.
drivers/hwmon/Kconfig renamed from drivers/hwmon/Kconfig.orig +4 -3
@@ -343,11 +343,12 @@ config SENSORS_FSCPOS will be called fscpos. config SENSORS_FSCHMD - tristate "FSC Poseidon, Scylla, Hermes, Heimdall and Heracles" + tristate "Fujitsu Siemens Computers sensor chips" depends on X86 && I2C help - If you say yes here you get support for various Fujitsu Siemens - Computers sensor chips, including support for the integrated + If you say yes here you get support for the following Fujitsu + Siemens Computers (FSC) sensor chips: Poseidon, Scylla, Hermes, + Heimdall, Heracles and Syleus including support for the integrated watchdog. This is a merged driver for FSC sensor chips replacing the fscpos,
drivers/hwmon/fschmd.c renamed from drivers/hwmon/fschmd.c.orig +158 -59
489 lines not on this page · raw message
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Hans de Goede
This patch adds support for the FSC Syleus IC to the fschmd driver.
Many thanks to Fujitsu Siemens Computers for providing docs and a machine to test the driver on.
(...)
You forgot to update this part:
drivers/hwmon/fschmd.c static int fschmd_remove(struct i2c_clie · line 1231
Quoted 9 lines
drivers/hwmon/fschmd.c renamed from drivers/hwmon/fschmd.c.orig +1
-1@@ -1126,7 +1225,7 @@ static int fschmd_remove(struct i2c_clieif (data->hwmon_dev)hwmon_device_unregister (data->hwmon_dev); -for (i =0 ; i <ARRAY_SIZE (fschmd_attr); i++) +for (i =0 ; i < (FSCHMD_NO_VOLT_SENSORS [data->kind] +1 ); i++)device_remove_file (&client->dev, &fschmd_attr[i].dev_attr);for (i =0 ; i < (FSCHMD_NO_TEMP_SENSORS [data->kind] *4 ); i++) device_remove_file(&client->dev,
Didn't you try unloading the driver? I guess this would break.
The rest looks OK. I'll fix it up myself.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 9 lines · Jean Delvare
Quoted 5 lines · Hans de Goede
This patch adds support for the FSC Syleus IC to the fschmd driver.
Many thanks to Fujitsu Siemens Computers for providing docs and a machine to test the driver on.
(...)You forgot to update this part:
Good catch, thanks!
Quoted 4 lines
Quoted 4 lines
drivers/hwmon/fschmd.c renamed from drivers/hwmon/fschmd.c.orig +0
-0@@ -1126,7 +1225,7 @@ static int fschmd_remove(struct i2c_clieif (data->hwmon_dev)hwmon_device_unregister (data->hwmon_dev);
Quoted 8 lines
Review static int fschmd_remove(struct i2c_clie · line 1231
Quoted 5 lines
(quoted diff) +1
-1- for (i = 0; i< ARRAY_SIZE(fschmd_attr); i++) + for (i = 0; i< (FSCHMD_NO_VOLT_SENSORS[data->kind] + 1); i++) device_remove_file(&client->dev,&fschmd_attr[i].dev_attr); for (i = 0; i< (FSCHMD_NO_TEMP_SENSORS[data->kind] * 4); i++) device_remove_file(&client->dev,Didn't you try unloading the driver? I guess this would break.
I did unload it, and didn't see any problems.
Quoted 1 line
The rest looks OK. I'll fix it up myself.
Ok, thanks.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors