Skip to contentSkip to conversation

Linux 2.6.3, lm_sensors 2.8.5

DISCUSSION Jean Delvare 4 participants 13 messages May 19, 2005 I2C

lore
Share & tools
lore
#0 lore raw

Hi all,

Linux 2.6.3 is out. We want to release lm_sensors 2.8.5, don't we?

I know this is only two weeks since the last release, but I am not responsible for the very short cycle of Linux 2.6.3. And it happens that the w83l785ts driver in Linux 2.6.3 isn't compatible with libsensors from lm_sensors 2.8.4. There may be other compatibility issues, but this is the main one I can think of.

So, according to Greg's theory, we should release a new version of lm_sensors, numbered 2.8.5. OTOH, we probably don't want to release i2c 2.8.5 with an empty change list.

I propose to set the deadline to Friday, February 20th, 2004.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw

Hi,

Quoted 11 lines · Jean Delvare

Linux 2.6.3 is out. We want to release lm_sensors 2.8.5, don't we?

I know this is only two weeks since the last release, but I am not responsible for the very short cycle of Linux 2.6.3. And it happens that the w83l785ts driver in Linux 2.6.3 isn't compatible with libsensors from lm_sensors 2.8.4. There may be other compatibility issues, but this is the main one I can think of.

So, according to Greg's theory, we should release a new version of lm_sensors, numbered 2.8.5. OTOH, we probably don't want to release i2c 2.8.5 with an empty change list.

Could the versioning scheme be redesigned, so that the first two digits indicate the same i2c/lm_sensors interface? E.g. lm_sensors 2.9.x requires i2c 2.9.y where x is not necessarily equal to y.

That way one could decouple release cycles of lm_sensors and i2c to use different pacing. It would also help packagers to decide whether a new kernel with mandatory i2c patching is necessary for building lm_sensors kernel modules, and even embed virtually Provides and Requires in kernels and lm_sensors packages (e.g. a future kernel-2.6.10-i2c193 provides "kernel-i2c = 2.9.3" and lm_sensors-2.9.7 requires "kernel-i2c >= 2.9.0, kernel-i2c <= 2.10").

Quoted 1 line

I propose to set the deadline to Friday, February 20th, 2004.

Signature · 8 lines
[email protected]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040219/c0291221/attachment.bin
#2 lore raw
In reply to Jean Delvare

Hi Axel,

Quoted 3 lines

Could the versioning scheme be redesigned, so that the first two digits indicate the same i2c/lm_sensors interface? E.g. lm_sensors 2.9.x requires i2c 2.9.y where x is not necessarily equal to y.

This would need that the second number of the version would increase by one with almost each release. I don't like that idea much. Also, we more or less try to keep our release versions in sync with Linux 2.6, and that's something I wouldn't want to break.

Quoted 7 lines

That way one could decouple release cycles of lm_sensors and i2c to use different pacing. It would also help packagers to decide whether a new kernel with mandatory i2c patching is necessary for building lm_sensors kernel modules, and even embed virtually Provides and Requires in kernels and lm_sensors packages (e.g. a future kernel-2.6.10-i2c193 provides "kernel-i2c = 2.9.3" and lm_sensors-2.9.7 requires "kernel-i2c >= 2.9.0, kernel-i2c <= 2.10").

I don't see much benefit (probably because I am not a packager (anymore) ;)). The minimal i2c version required is documented in lm_sensors2/INSTALL. OK, it happens that this information is *wrong* at least in the last (2.8.4) release, but we'll try to keep it up-to-date by now. I think that this information, if reliable, should be enough for packagers to know how to setup their dependencies.

I agree that this doesn't cover the "be foreseeable" part of your request. But, with the exception of i2c-2.8.0, lm_sensors verions should all work well with future versions of i2c, so this shouldn't be a big problem.

For my own information, do you have any exemple of project following the numbering scheme you suggest between two or more of their packages?

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Jean Delvare

Hi,

Quoted 17 lines · Jean Delvare
Quoted 3 lines

Could the versioning scheme be redesigned, so that the first two digits indicate the same i2c/lm_sensors interface? E.g. lm_sensors 2.9.x requires i2c 2.9.y where x is not necessarily equal to y.

This would need that the second number of the version would increase by one with almost each release. I don't like that idea much. Also, we more or less try to keep our release versions in sync with Linux 2.6, and that's something I wouldn't want to break.

Quoted 7 lines

That way one could decouple release cycles of lm_sensors and i2c to use different pacing. It would also help packagers to decide whether a new kernel with mandatory i2c patching is necessary for building lm_sensors kernel modules, and even embed virtually Provides and Requires in kernels and lm_sensors packages (e.g. a future kernel-2.6.10-i2c193 provides "kernel-i2c = 2.9.3" and lm_sensors-2.9.7 requires "kernel-i2c >= 2.9.0, kernel-i2c <= 2.10").

Quoted 6 lines

I don't see much benefit (probably because I am not a packager (anymore) ;)). The minimal i2c version required is documented in lm_sensors2/INSTALL. OK, it happens that this information is *wrong* at least in the last (2.8.4) release, but we'll try to keep it up-to-date by now. I think that this information, if reliable, should be enough for packagers to know how to setup their dependencies.

Yes, that's what I am after, and the suggestion above was to embed it in the versioning scheme itself. Which is the minimal required i2c in kernel for lm_sensors 2.8.4/2.8.5? BTW I am about to build new kernels for FC1 (2.4.22 & lots of backports based) and would like to include 2.8.5 (currently at 2.8.2), will you provide an i2c patch for it again? :)

Quoted 7 lines

I agree that this doesn't cover the "be foreseeable" part of your request. But, with the exception of i2c-2.8.0, lm_sensors verions should all work well with future versions of i2c, so this shouldn't be a big problem.

For my own information, do you have any exemple of project following the numbering scheme you suggest between two or more of their packages?

You mean projects releasing several subprojects? tetex for instance has decoupled binaries and texmf packages where the texmf tree requires a minimum binary version. gnome or kde could be also examples of releasing several subprojects which do not require to be fully in sync (e.g. you do not need gnome-common = 2.6.0 to build 2.6.0 gnome applications).

If you are referring to the kernel-i2c versioning scheme, the kernel-drm dependeny to XFree86 has been the patron of the above suggestion ;)

Signature · 8 lines
[email protected]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040220/151c4309/attachment.bin
#4 lore raw
In reply to Jean Delvare
Quoted 4 lines · Jean Delvare

Releasing doesn't cost us much. In return, it is likely to save half a dozen reports about w83l785ts not working in Linux 2.6.3, if nothing else. For this reason I think we should release. And I guess Greg will agree with me. Supporters of MDS, speak up ;)

Yes, I agree.

BTW, care to send me that sysfs change patch as I didn't see any objections to the name change?

thanks,

greg k-h

#5 lore raw
In reply to Jean Delvare
Quoted 3 lines

Yes, that's what I am after, and the suggestion above was to embed it in the versioning scheme itself. Which is the minimal required i2c in kernel for lm_sensors 2.8.4/2.8.5?

Sadly, i2c 2.8.4, although it shouldn't (the "incompatibility" comes from new IDs, this can be avoided easily.)

Quoted 3 lines

BTW I am about to build new kernels for FC1 (2.4.22 & lots of backports based) and would like to include 2.8.5 (currently at 2.8.2), will you provide an i2c patch for it again? :)

To anyone else I'd have replied "no way, I'm busy". But since this is you... I just updated the files, go pick them and tell me how it goes :)

Quoted 4 lines

(...)
If you are referring to the kernel-i2c versioning scheme, the kernel-drm dependeny to XFree86 has been the patron of the above suggestion ;)

I guess we might consider it then... However, I still want to keep in sync (sort of) with Linux 2.6 for now. Once the rush is behind us, maybe...

That said, we better start with not creating unneeded dependencies with IDs, as MDS suggested. And keeping the docs accurate too. This should already make your life a bit easier.

Feel free to come back with your suggestion within a few months, in case we forget about it and you're still interested.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#6 lore raw
In reply to Jean Delvare

Quoting MDS:

Quoted 2 lines

I don't think we should do a sensors release just because of w83l785ts.

Well, from a 2.6 kernel point of view, there's also a sysfs enabled decode-edid.pl.

For 2.4 kernels, there is w83637hf support and some fixes to a few drivers.

I agree that there are less changes than usual (quite normal since there has been only 2 weeks since previous release). But is is comparable to 2.8.3, for example. From 2.0.0 to 2.5.0, most releases had far less than we have here.

Releasing doesn't cost us much. In return, it is likely to save half a dozen reports about w83l785ts not working in Linux 2.6.3, if nothing else. For this reason I think we should release. And I guess Greg will agree with me. Supporters of MDS, speak up ;)

Quoted 5 lines

We also shouldn't be forcing people to upgrade i2c releases. The last couple of new sensors drivers have not had #ifndef I2C_DRIVERID_xxx in the new drivers, which forces people to upgrade i2c for very little reason. IMO we should always #ifndef the driverids in new drivers.

Correct. This is my fault. I'll try to think of it from now on.

Maybe I could fix that before the next release, so as it will work with versions down to 2.8.0 of i2c? Doesn't cost much, and likely to save some users (and us with them) some trouble.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#7 lore raw
In reply to Jean Delvare
Quoted 2 lines

BTW, care to send me that sysfs change patch as I didn't see any objections to the name change?

Which probably doesn't mean they all agree, but at least they won't possibly complain later ;)

Here it is. The associated libsensors patch is here:
http://jdelvare.net1.nerim.net/sensors/libsensors-sysfs-names-1.diff
(not applied yet, on purpose)

TESTERS WANTED!

Note that the documentation patch won't apply unless you have previously applied my previous documentation update.

Also note that this is only the first step of my plan. I know you like sliced patches ;) Second step coming soon.

Thanks.

drivers/i2c/chips/adm1021.c renamed from drivers/i2c/chips.orig/adm1021.c +12 -12
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/adm1021.c linux-2.6.3-g1/drivers/i2c/chips/adm1021.c
@@ -206,12 +206,12 @@
 set(remote_temp_max, ADM1021_REG_REMOTE_TOS_W);
 set(remote_temp_hyst, ADM1021_REG_REMOTE_THYST_W);
 
-static DEVICE_ATTR(temp_max1, S_IWUSR | S_IRUGO, show_temp_max, set_temp_max);
-static DEVICE_ATTR(temp_min1, S_IWUSR | S_IRUGO, show_temp_hyst, set_temp_hyst);
-static DEVICE_ATTR(temp_input1, S_IRUGO, show_temp_input, NULL);
-static DEVICE_ATTR(temp_max2, S_IWUSR | S_IRUGO, show_remote_temp_max, set_remote_temp_max);
-static DEVICE_ATTR(temp_min2, S_IWUSR | S_IRUGO, show_remote_temp_hyst, set_remote_temp_hyst);
-static DEVICE_ATTR(temp_input2, S_IRUGO, show_remote_temp_input, NULL);
+static DEVICE_ATTR(temp1_max, S_IWUSR | S_IRUGO, show_temp_max, set_temp_max);
+static DEVICE_ATTR(temp1_min, S_IWUSR | S_IRUGO, show_temp_hyst, set_temp_hyst);
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp_input, NULL);
+static DEVICE_ATTR(temp2_max, S_IWUSR | S_IRUGO, show_remote_temp_max, set_remote_temp_max);
+static DEVICE_ATTR(temp2_min, S_IWUSR | S_IRUGO, show_remote_temp_hyst, set_remote_temp_hyst);
+static DEVICE_ATTR(temp2_input, S_IRUGO, show_remote_temp_input, NULL);
 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
 static DEVICE_ATTR(die_code, S_IRUGO, show_die_code, NULL);
 
@@ -331,12 +331,12 @@
 	adm1021_init_client(new_client);
 
 	/* Register sysfs hooks */
-	device_create_file(&new_client->dev, &dev_attr_temp_max1);
-	device_create_file(&new_client->dev, &dev_attr_temp_min1);
-	device_create_file(&new_client->dev, &dev_attr_temp_input1);
-	device_create_file(&new_client->dev, &dev_attr_temp_max2);
-	device_create_file(&new_client->dev, &dev_attr_temp_min2);
-	device_create_file(&new_client->dev, &dev_attr_temp_input2);
+	device_create_file(&new_client->dev, &dev_attr_temp1_max);
+	device_create_file(&new_client->dev, &dev_attr_temp1_min);
+	device_create_file(&new_client->dev, &dev_attr_temp1_input);
+	device_create_file(&new_client->dev, &dev_attr_temp2_max);
+	device_create_file(&new_client->dev, &dev_attr_temp2_min);
+	device_create_file(&new_client->dev, &dev_attr_temp2_input);
 	device_create_file(&new_client->dev, &dev_attr_alarms);
 	if (data->type = adm1021)
 		device_create_file(&new_client->dev, &dev_attr_die_code);
drivers/i2c/chips/asb100.c renamed from drivers/i2c/chips.orig/asb100.c +20 -20
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/asb100.c linux-2.6.3-g1/drivers/i2c/chips/asb100.c
@@ -274,7 +274,7 @@
 { \
 	return show_in(dev, buf, 0x##offset); \
 } \
-static DEVICE_ATTR(in_input##offset, S_IRUGO, \
+static DEVICE_ATTR(in##offset##_input, S_IRUGO, \
 		show_in##offset, NULL) \
 static ssize_t \
 	show_in##offset##_min (struct device *dev, char *buf) \
@@ -296,9 +296,9 @@
 { \
 	return set_in_max(dev, buf, count, 0x##offset); \
 } \
-static DEVICE_ATTR(in_min##offset, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(in##offset##_min, S_IRUGO | S_IWUSR, \
 		show_in##offset##_min, set_in##offset##_min) \
-static DEVICE_ATTR(in_max##offset, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
 		show_in##offset##_max, set_in##offset##_max)
 
 sysfs_in(0)
@@ -310,9 +310,9 @@
 sysfs_in(6)
 
 #define device_create_file_in(client, offset) do { \
-	device_create_file(&client->dev, &dev_attr_in_input##offset); \
-	device_create_file(&client->dev, &dev_attr_in_min##offset); \
-	device_create_file(&client->dev, &dev_attr_in_max##offset); \
+	device_create_file(&client->dev, &dev_attr_in##offset##_input); \
+	device_create_file(&client->dev, &dev_attr_in##offset##_min); \
+	device_create_file(&client->dev, &dev_attr_in##offset##_max); \
 } while (0)
 
 /* 3 Fans */
@@ -412,11 +412,11 @@
 { \
 	return set_fan_div(dev, buf, count, offset - 1); \
 } \
-static DEVICE_ATTR(fan_input##offset, S_IRUGO, \
+static DEVICE_ATTR(fan##offset##_input, S_IRUGO, \
 		show_fan##offset, NULL) \
-static DEVICE_ATTR(fan_min##offset, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
 		show_fan##offset##_min, set_fan##offset##_min) \
-static DEVICE_ATTR(fan_div##offset, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
 		show_fan##offset##_div, set_fan##offset##_div)
 
 sysfs_fan(1)
@@ -424,9 +424,9 @@
 sysfs_fan(3)
 
 #define device_create_file_fan(client, offset) do { \
-	device_create_file(&client->dev, &dev_attr_fan_input##offset); \
-	device_create_file(&client->dev, &dev_attr_fan_min##offset); \
-	device_create_file(&client->dev, &dev_attr_fan_div##offset); \
+	device_create_file(&client->dev, &dev_attr_fan##offset##_input); \
+	device_create_file(&client->dev, &dev_attr_fan##offset##_min); \
+	device_create_file(&client->dev, &dev_attr_fan##offset##_div); \
 } while (0)
 
 /* 4 Temp. Sensors */
@@ -484,7 +484,7 @@
 { \
 	return show_temp(dev, buf, num-1); \
 } \
-static DEVICE_ATTR(temp_input##num, S_IRUGO, show_temp##num, NULL) \
+static DEVICE_ATTR(temp##num##_input, S_IRUGO, show_temp##num, NULL) \
 static ssize_t show_temp_max##num(struct device *dev, char *buf) \
 { \
 	return show_temp_max(dev, buf, num-1); \
@@ -494,7 +494,7 @@
 { \
 	return set_temp_max(dev, buf, count, num-1); \
 } \
-static DEVICE_ATTR(temp_max##num, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(temp##num##_max, S_IRUGO | S_IWUSR, \
 		show_temp_max##num, set_temp_max##num) \
 static ssize_t show_temp_hyst##num(struct device *dev, char *buf) \
 { \
@@ -505,7 +505,7 @@
 { \
 	return set_temp_hyst(dev, buf, count, num-1); \
 } \
-static DEVICE_ATTR(temp_hyst##num, S_IRUGO | S_IWUSR, \
+static DEVICE_ATTR(temp##num##_hyst, S_IRUGO | S_IWUSR, \
 		show_temp_hyst##num, set_temp_hyst##num)
 
 sysfs_temp(1)
@@ -515,9 +515,9 @@
 
 /* VID */
 #define device_create_file_temp(client, num) do { \
-	device_create_file(&client->dev, &dev_attr_temp_input##num); \
-	device_create_file(&client->dev, &dev_attr_temp_max##num); \
-	device_create_file(&client->dev, &dev_attr_temp_hyst##num); \
+	device_create_file(&client->dev, &dev_attr_temp##num##_input); \
+	device_create_file(&client->dev, &dev_attr_temp##num##_max); \
+	device_create_file(&client->dev, &dev_attr_temp##num##_hyst); \
 } while (0)
 
 static ssize_t show_vid(struct device *dev, char *buf)
@@ -598,11 +598,11 @@
 }
 
 static DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm1, set_pwm1)
-static DEVICE_ATTR(pwm_enable1, S_IRUGO | S_IWUSR,
+static DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR,
 		show_pwm_enable1, set_pwm_enable1)
 #define device_create_file_pwm1(client) do { \
 	device_create_file(&new_client->dev, &dev_attr_pwm1); \
-	device_create_file(&new_client->dev, &dev_attr_pwm_enable1); \
+	device_create_file(&new_client->dev, &dev_attr_pwm1_enable); \
 } while (0)
 
 /* This function is called when:
drivers/i2c/chips/fscher.c renamed from drivers/i2c/chips.orig/fscher.c +46 -46

138 lines not on this page · raw message

Only in linux-2.6.3-g1/drivers/i2c/chips: fscher.c~

drivers/i2c/chips/gl518sm.c renamed from drivers/i2c/chips.orig/gl518sm.c +44 -44

101 lines not on this page · raw message

drivers/i2c/chips/it87.c renamed from drivers/i2c/chips.orig/it87.c +52 -52

140 lines not on this page · raw message

drivers/i2c/chips/lm75.c renamed from drivers/i2c/chips.orig/lm75.c +6 -6
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/lm75.c linux-2.6.3-g1/drivers/i2c/chips/lm75.c
@@ -104,9 +104,9 @@
 set(temp_max, LM75_REG_TEMP_OS);
 set(temp_hyst, LM75_REG_TEMP_HYST);
 
-static DEVICE_ATTR(temp_max1, S_IWUSR | S_IRUGO, show_temp_max, set_temp_max);
-static DEVICE_ATTR(temp_hyst1, S_IWUSR | S_IRUGO, show_temp_hyst, set_temp_hyst);
-static DEVICE_ATTR(temp_input1, S_IRUGO, show_temp_input, NULL);
+static DEVICE_ATTR(temp1_max, S_IWUSR | S_IRUGO, show_temp_max, set_temp_max);
+static DEVICE_ATTR(temp1_hyst, S_IWUSR | S_IRUGO, show_temp_hyst, set_temp_hyst);
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp_input, NULL);
 
 static int lm75_attach_adapter(struct i2c_adapter *adapter)
 {
@@ -197,9 +197,9 @@
 	lm75_init_client(new_client);
 	
 	/* Register sysfs hooks */
-	device_create_file(&new_client->dev, &dev_attr_temp_max1);
-	device_create_file(&new_client->dev, &dev_attr_temp_hyst1);
-	device_create_file(&new_client->dev, &dev_attr_temp_input1);
+	device_create_file(&new_client->dev, &dev_attr_temp1_max);
+	device_create_file(&new_client->dev, &dev_attr_temp1_hyst);
+	device_create_file(&new_client->dev, &dev_attr_temp1_input);
 
 	return 0;
 
drivers/i2c/chips/lm78.c renamed from drivers/i2c/chips.orig/lm78.c +44 -44

128 lines not on this page · raw message

drivers/i2c/chips/lm80.c renamed from drivers/i2c/chips.orig/lm80.c +64 -64

145 lines not on this page · raw message

drivers/i2c/chips/lm83.c renamed from drivers/i2c/chips.orig/lm83.c +16 -16
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/lm83.c linux-2.6.3-g1/drivers/i2c/chips/lm83.c
@@ -201,17 +201,17 @@
 	return sprintf(buf, "%d\n", data->alarms);
 }
 
-static DEVICE_ATTR(temp_input1, S_IRUGO, show_temp_input1, NULL);
-static DEVICE_ATTR(temp_input2, S_IRUGO, show_temp_input2, NULL);
-static DEVICE_ATTR(temp_input3, S_IRUGO, show_temp_input3, NULL);
-static DEVICE_ATTR(temp_input4, S_IRUGO, show_temp_input4, NULL);
-static DEVICE_ATTR(temp_max1, S_IWUSR | S_IRUGO, show_temp_high1,
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp_input1, NULL);
+static DEVICE_ATTR(temp2_input, S_IRUGO, show_temp_input2, NULL);
+static DEVICE_ATTR(temp3_input, S_IRUGO, show_temp_input3, NULL);
+static DEVICE_ATTR(temp4_input, S_IRUGO, show_temp_input4, NULL);
+static DEVICE_ATTR(temp1_max, S_IWUSR | S_IRUGO, show_temp_high1,
     set_temp_high1);
-static DEVICE_ATTR(temp_max2, S_IWUSR | S_IRUGO, show_temp_high2,
+static DEVICE_ATTR(temp2_max, S_IWUSR | S_IRUGO, show_temp_high2,
     set_temp_high2);
-static DEVICE_ATTR(temp_max3, S_IWUSR | S_IRUGO, show_temp_high3,
+static DEVICE_ATTR(temp3_max, S_IWUSR | S_IRUGO, show_temp_high3,
     set_temp_high3);
-static DEVICE_ATTR(temp_max4, S_IWUSR | S_IRUGO, show_temp_high4,
+static DEVICE_ATTR(temp4_max, S_IWUSR | S_IRUGO, show_temp_high4,
     set_temp_high4);
 static DEVICE_ATTR(temp_crit, S_IWUSR | S_IRUGO, show_temp_crit,
     set_temp_crit);
@@ -320,14 +320,14 @@
 	 */
 
 	/* Register sysfs hooks */
-	device_create_file(&new_client->dev, &dev_attr_temp_input1);
-	device_create_file(&new_client->dev, &dev_attr_temp_input2);
-	device_create_file(&new_client->dev, &dev_attr_temp_input3);
-	device_create_file(&new_client->dev, &dev_attr_temp_input4);
-	device_create_file(&new_client->dev, &dev_attr_temp_max1);
-	device_create_file(&new_client->dev, &dev_attr_temp_max2);
-	device_create_file(&new_client->dev, &dev_attr_temp_max3);
-	device_create_file(&new_client->dev, &dev_attr_temp_max4);
+	device_create_file(&new_client->dev, &dev_attr_temp1_input);
+	device_create_file(&new_client->dev, &dev_attr_temp2_input);
+	device_create_file(&new_client->dev, &dev_attr_temp3_input);
+	device_create_file(&new_client->dev, &dev_attr_temp4_input);
+	device_create_file(&new_client->dev, &dev_attr_temp1_max);
+	device_create_file(&new_client->dev, &dev_attr_temp2_max);
+	device_create_file(&new_client->dev, &dev_attr_temp3_max);
+	device_create_file(&new_client->dev, &dev_attr_temp4_max);
 	device_create_file(&new_client->dev, &dev_attr_temp_crit);
 	device_create_file(&new_client->dev, &dev_attr_alarms);
 
drivers/i2c/chips/lm85.c renamed from drivers/i2c/chips.orig/lm85.c +44 -44

123 lines not on this page · raw message

drivers/i2c/chips/lm90.c renamed from drivers/i2c/chips.orig/lm90.c +20 -20
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/lm90.c linux-2.6.3-g1/drivers/i2c/chips/lm90.c
@@ -245,23 +245,23 @@
 	return sprintf(buf, "%d\n", data->alarms);
 }
 
-static DEVICE_ATTR(temp_input1, S_IRUGO, show_temp_input1, NULL);
-static DEVICE_ATTR(temp_input2, S_IRUGO, show_temp_input2, NULL);
-static DEVICE_ATTR(temp_min1, S_IWUSR | S_IRUGO, show_temp_low1,
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp_input1, NULL);
+static DEVICE_ATTR(temp2_input, S_IRUGO, show_temp_input2, NULL);
+static DEVICE_ATTR(temp1_min, S_IWUSR | S_IRUGO, show_temp_low1,
 	set_temp_low1);
-static DEVICE_ATTR(temp_min2, S_IWUSR | S_IRUGO, show_temp_low2,
+static DEVICE_ATTR(temp2_min, S_IWUSR | S_IRUGO, show_temp_low2,
 	set_temp_low2);
-static DEVICE_ATTR(temp_max1, S_IWUSR | S_IRUGO, show_temp_high1,
+static DEVICE_ATTR(temp1_max, S_IWUSR | S_IRUGO, show_temp_high1,
 	set_temp_high1);
-static DEVICE_ATTR(temp_max2, S_IWUSR | S_IRUGO, show_temp_high2,
+static DEVICE_ATTR(temp2_max, S_IWUSR | S_IRUGO, show_temp_high2,
 	set_temp_high2);
-static DEVICE_ATTR(temp_crit1, S_IWUSR | S_IRUGO, show_temp_crit1,
+static DEVICE_ATTR(temp1_crit, S_IWUSR | S_IRUGO, show_temp_crit1,
 	set_temp_crit1);
-static DEVICE_ATTR(temp_crit2, S_IWUSR | S_IRUGO, show_temp_crit2,
+static DEVICE_ATTR(temp2_crit, S_IWUSR | S_IRUGO, show_temp_crit2,
 	set_temp_crit2);
-static DEVICE_ATTR(temp_hyst1, S_IWUSR | S_IRUGO, show_temp_hyst1,
+static DEVICE_ATTR(temp1_hyst, S_IWUSR | S_IRUGO, show_temp_hyst1,
 	set_temp_hyst1);
-static DEVICE_ATTR(temp_hyst2, S_IRUGO, show_temp_hyst2, NULL);
+static DEVICE_ATTR(temp2_hyst, S_IRUGO, show_temp_hyst2, NULL);
 static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL);
 
 /*
@@ -381,16 +381,16 @@
 	lm90_init_client(new_client);
 
 	/* Register sysfs hooks */
-	device_create_file(&new_client->dev, &dev_attr_temp_input1);
-	device_create_file(&new_client->dev, &dev_attr_temp_input2);
-	device_create_file(&new_client->dev, &dev_attr_temp_min1);
-	device_create_file(&new_client->dev, &dev_attr_temp_min2);
-	device_create_file(&new_client->dev, &dev_attr_temp_max1);
-	device_create_file(&new_client->dev, &dev_attr_temp_max2);
-	device_create_file(&new_client->dev, &dev_attr_temp_crit1);
-	device_create_file(&new_client->dev, &dev_attr_temp_crit2);
-	device_create_file(&new_client->dev, &dev_attr_temp_hyst1);
-	device_create_file(&new_client->dev, &dev_attr_temp_hyst2);
+	device_create_file(&new_client->dev, &dev_attr_temp1_input);
+	device_create_file(&new_client->dev, &dev_attr_temp2_input);
+	device_create_file(&new_client->dev, &dev_attr_temp1_min);
+	device_create_file(&new_client->dev, &dev_attr_temp2_min);
+	device_create_file(&new_client->dev, &dev_attr_temp1_max);
+	device_create_file(&new_client->dev, &dev_attr_temp2_max);
+	device_create_file(&new_client->dev, &dev_attr_temp1_crit);
+	device_create_file(&new_client->dev, &dev_attr_temp2_crit);
+	device_create_file(&new_client->dev, &dev_attr_temp1_hyst);
+	device_create_file(&new_client->dev, &dev_attr_temp2_hyst);
 	device_create_file(&new_client->dev, &dev_attr_alarms);
 
 	return 0;
drivers/i2c/chips/via686a.c renamed from drivers/i2c/chips.orig/via686a.c +39 -39

105 lines not on this page · raw message

drivers/i2c/chips/w83781d.c renamed from drivers/i2c/chips.orig/w83781d.c +18 -18
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/w83781d.c linux-2.6.3-g1/drivers/i2c/chips/w83781d.c
@@ -331,7 +331,7 @@
 { \
         return show_in(dev, buf, 0x##offset); \
 } \
-static DEVICE_ATTR(in_input##offset, S_IRUGO, show_regs_in_##offset, NULL)
+static DEVICE_ATTR(in##offset##_input, S_IRUGO, show_regs_in_##offset, NULL)
 
 #define sysfs_in_reg_offset(reg, offset) \
 static ssize_t show_regs_in_##reg##offset (struct device *dev, char *buf) \
@@ -342,7 +342,7 @@
 { \
 	return store_in_##reg (dev, buf, count, 0x##offset); \
 } \
-static DEVICE_ATTR(in_##reg##offset, S_IRUGO| S_IWUSR, show_regs_in_##reg##offset, store_regs_in_##reg##offset)
+static DEVICE_ATTR(in##offset##_##reg, S_IRUGO| S_IWUSR, show_regs_in_##reg##offset, store_regs_in_##reg##offset)
 
 #define sysfs_in_offsets(offset) \
 sysfs_in_offset(offset); \
@@ -361,9 +361,9 @@
 
 #define device_create_file_in(client, offset) \
 do { \
-device_create_file(&client->dev, &dev_attr_in_input##offset); \
-device_create_file(&client->dev, &dev_attr_in_min##offset); \
-device_create_file(&client->dev, &dev_attr_in_max##offset); \
+device_create_file(&client->dev, &dev_attr_in##offset##_input); \
+device_create_file(&client->dev, &dev_attr_in##offset##_min); \
+device_create_file(&client->dev, &dev_attr_in##offset##_max); \
 } while (0)
 
 #define show_fan_reg(reg) \
@@ -401,7 +401,7 @@
 { \
 	return show_fan(dev, buf, 0x##offset); \
 } \
-static DEVICE_ATTR(fan_input##offset, S_IRUGO, show_regs_fan_##offset, NULL)
+static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_regs_fan_##offset, NULL)
 
 #define sysfs_fan_min_offset(offset) \
 static ssize_t show_regs_fan_min##offset (struct device *dev, char *buf) \
@@ -412,7 +412,7 @@
 { \
 	return store_fan_min(dev, buf, count, 0x##offset); \
 } \
-static DEVICE_ATTR(fan_min##offset, S_IRUGO | S_IWUSR, show_regs_fan_min##offset, store_regs_fan_min##offset)
+static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, show_regs_fan_min##offset, store_regs_fan_min##offset)
 
 sysfs_fan_offset(1);
 sysfs_fan_min_offset(1);
@@ -423,8 +423,8 @@
 
 #define device_create_file_fan(client, offset) \
 do { \
-device_create_file(&client->dev, &dev_attr_fan_input##offset); \
-device_create_file(&client->dev, &dev_attr_fan_min##offset); \
+device_create_file(&client->dev, &dev_attr_fan##offset##_input); \
+device_create_file(&client->dev, &dev_attr_fan##offset##_min); \
 } while (0)
 
 #define show_temp_reg(reg) \
@@ -485,7 +485,7 @@
 { \
 	return show_temp(dev, buf, 0x##offset); \
 } \
-static DEVICE_ATTR(temp_input##offset, S_IRUGO, show_regs_temp_##offset, NULL)
+static DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_regs_temp_##offset, NULL)
 
 #define sysfs_temp_reg_offset(reg, offset) \
 static ssize_t show_regs_temp_##reg##offset (struct device *dev, char *buf) \
@@ -496,7 +496,7 @@
 { \
 	return store_temp_##reg (dev, buf, count, 0x##offset); \
 } \
-static DEVICE_ATTR(temp_##reg##offset, S_IRUGO| S_IWUSR, show_regs_temp_##reg##offset, store_regs_temp_##reg##offset)
+static DEVICE_ATTR(temp##offset##_##reg, S_IRUGO| S_IWUSR, show_regs_temp_##reg##offset, store_regs_temp_##reg##offset)
 
 #define sysfs_temp_offsets(offset) \
 sysfs_temp_offset(offset); \
@@ -509,9 +509,9 @@
 
 #define device_create_file_temp(client, offset) \
 do { \
-device_create_file(&client->dev, &dev_attr_temp_input##offset); \
-device_create_file(&client->dev, &dev_attr_temp_max##offset); \
-device_create_file(&client->dev, &dev_attr_temp_hyst##offset); \
+device_create_file(&client->dev, &dev_attr_temp##offset##_input); \
+device_create_file(&client->dev, &dev_attr_temp##offset##_max); \
+device_create_file(&client->dev, &dev_attr_temp##offset##_hyst); \
 } while (0)
 
 static ssize_t
@@ -708,7 +708,7 @@
 { \
 	return store_fan_div_reg(dev, buf, count, offset); \
 } \
-static DEVICE_ATTR(fan_div##offset, S_IRUGO | S_IWUSR, show_regs_fan_div_##offset, store_regs_fan_div_##offset)
+static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, show_regs_fan_div_##offset, store_regs_fan_div_##offset)
 
 sysfs_fan_div(1);
 sysfs_fan_div(2);
@@ -716,7 +716,7 @@
 
 #define device_create_file_fan_div(client, offset) \
 do { \
-device_create_file(&client->dev, &dev_attr_fan_div##offset); \
+device_create_file(&client->dev, &dev_attr_fan##offset##_div); \
 } while (0)
 
 /* w83697hf only has two fans */
@@ -820,7 +820,7 @@
 { \
 	return store_pwmenable_reg(dev, buf, count, offset); \
 } \
-static DEVICE_ATTR(pwm_enable##offset, S_IRUGO | S_IWUSR, show_regs_pwmenable_##offset, store_regs_pwmenable_##offset)
+static DEVICE_ATTR(pwm##offset##_enable, S_IRUGO | S_IWUSR, show_regs_pwmenable_##offset, store_regs_pwmenable_##offset)
 
 sysfs_pwm(1);
 sysfs_pwm(2);
@@ -835,7 +835,7 @@
 
 #define device_create_file_pwmenable(client, offset) \
 do { \
-device_create_file(&client->dev, &dev_attr_pwm_enable##offset); \
+device_create_file(&client->dev, &dev_attr_pwm##offset##_enable); \
 } while (0)
 
 static ssize_t
drivers/i2c/chips/w83l785ts.c renamed from drivers/i2c/chips.orig/w83l785ts.c +4 -4
diff -ru linux-2.6.3-g1/drivers/i2c/chips.orig/w83l785ts.c linux-2.6.3-g1/drivers/i2c/chips/w83l785ts.c
@@ -144,8 +144,8 @@
 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over));
 }
 
-static DEVICE_ATTR(temp_input1, S_IRUGO, show_temp, NULL)
-static DEVICE_ATTR(temp_max1, S_IRUGO, show_temp_over, NULL)
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL)
+static DEVICE_ATTR(temp1_max, S_IRUGO, show_temp_over, NULL)
 
 /*
  * Real code
@@ -259,8 +259,8 @@
 	 */
 
 	/* Register sysfs hooks */
-	device_create_file(&new_client->dev, &dev_attr_temp_input1);
-	device_create_file(&new_client->dev, &dev_attr_temp_max1);
+	device_create_file(&new_client->dev, &dev_attr_temp1_input);
+	device_create_file(&new_client->dev, &dev_attr_temp1_max);
 
 	return 0;
 
Documentation/i2c/sysfs-interface renamed from Documentation/i2c/sysfs-interface.orig +27 -27

136 lines not on this page · raw message

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#8 lore raw
In reply to Jean Delvare

I don't think we should do a sensors release just because of w83l785ts.

We also shouldn't be forcing people to upgrade i2c releases.
The last couple of new sensors drivers have not had #ifndef I2C_DRIVERID_xxx in the new drivers, which forces people to upgrade i2c for very little reason. IMO we should always #ifndef the driverids in new drivers.

Quoted 16 lines · Jean Delvare

Hi all,

Linux 2.6.3 is out. We want to release lm_sensors 2.8.5, don't we?

I know this is only two weeks since the last release, but I am not responsible for the very short cycle of Linux 2.6.3. And it happens that the w83l785ts driver in Linux 2.6.3 isn't compatible with libsensors from lm_sensors 2.8.4. There may be other compatibility issues, but this is the main one I can think of.

So, according to Greg's theory, we should release a new version of lm_sensors, numbered 2.8.5. OTOH, we probably don't want to release i2c 2.8.5 with an empty change list.

I propose to set the deadline to Friday, February 20th, 2004.

#9 lore raw
In reply to Jean Delvare
Quoted 10 lines · Jean Delvare
Quoted 2 lines

BTW, care to send me that sysfs change patch as I didn't see any objections to the name change?

Which probably doesn't mean they all agree, but at least they won't possibly complain later ;)

Here it is. The associated libsensors patch is here:
http://jdelvare.net1.nerim.net/sensors/libsensors-sysfs-names-1.diff
(not applied yet, on purpose)

Quoted 7 lines

TESTERS WANTED!

Note that the documentation patch won't apply unless you have previously applied my previous documentation update.

Also note that this is only the first step of my plan. I know you like sliced patches ;) Second step coming soon.

Ok, I've applied this one, and the second patch to my trees. I'll let them show up in the next -mm release and if no complaints, I'll forward them all on to Linus.

thanks a lot for doing all of this work.

greg k-h

#10 lore raw
In reply to Jean Delvare
Quoted 6 lines · Jean Delvare
Quoted 3 lines

BTW I am about to build new kernels for FC1 (2.4.22 & lots of backports based) and would like to include 2.8.5 (currently at 2.8.2), will you provide an i2c patch for it again? :)

To anyone else I'd have replied "no way, I'm busy". But since this is you... I just updated the files, go pick them and tell me how it goes :)

Thanks a lot! Rebuilding kernels, lm_sensors and kernel modules for all other projects took me quite some time, but now there is the latest FC1 kernel with patched in lm_sensors/i2c 2.8.4 as well as lm_sensors 2.8.4 userland bits (and external kernel modules, but they are probably redundant) available at

http://atrpms.physik.fu-berlin.de/name/kernel/
http://atrpms.physik.fu-berlin.de/name/lm_sensors/

(there is still the dmi_broken resolving issue I will comment on another thread)

Quoted 9 lines
Quoted 4 lines

(...)
If you are referring to the kernel-i2c versioning scheme, the kernel-drm dependeny to XFree86 has been the patron of the above suggestion ;)

I guess we might consider it then... However, I still want to keep in sync (sort of) with Linux 2.6 for now. Once the rush is behind us, maybe...

Quoted 6 lines

That said, we better start with not creating unneeded dependencies with IDs, as MDS suggested. And keeping the docs accurate too. This should already make your life a bit easier.

Feel free to come back with your suggestion within a few months, in case we forget about it and you're still interested.

I will remind you :)

Signature · 8 lines
[email protected]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040224/b7fa4182/attachment.bin
#11 lore raw
In reply to Jean Delvare
Quoted 8 lines

Thanks a lot! Rebuilding kernels, lm_sensors and kernel modules for all other projects took me quite some time, but now there is the latest FC1 kernel with patched in lm_sensors/i2c 2.8.4 as well as lm_sensors 2.8.4 userland bits (and external kernel modules, but they are probably redundant) available at

http://atrpms.physik.fu-berlin.de/name/kernel/
http://atrpms.physik.fu-berlin.de/name/lm_sensors/

BTW, I have fixed the unnecessary dependencies that lm_sensors-2.8.2, .3 and .4 had to i2c-2.8.2, .3 and .4, respectively. Thus, lm_sensors 2.8.5, when we release it, will need i2c 2.8.1 only.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#12 lore raw
In reply to Jean Delvare
Quoted 6 lines · Jean Delvare
Quoted 6 lines

Thanks a lot! Rebuilding kernels, lm_sensors and kernel modules for all other projects took me quite some time, but now there is the latest FC1 kernel with patched in lm_sensors/i2c 2.8.4 as well as lm_sensors 2.8.4 userland bits (and external kernel modules, but they are probably redundant) available at

Quoted 6 lines
Quoted 2 lines

http://atrpms.physik.fu-berlin.de/name/kernel/
http://atrpms.physik.fu-berlin.de/name/lm_sensors/

BTW, I have fixed the unnecessary dependencies that lm_sensors-2.8.2, .3 and .4 had to i2c-2.8.2, .3 and .4, respectively. Thus, lm_sensors 2.8.5, when we release it, will need i2c 2.8.1 only.

That is great, I could build it then for RH9/8.0/7.3, too, where I have i2c 2.8.2 patched in :)

Signature · 8 lines
[email protected]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040224/b2907cb5/attachment.bin