Skip to contentSkip to conversation

What todo with driver entry in sensors-detect for FSC

lm-sensors Hans de Goede 2 participants 4 messages Oct 19, 2007 – Oct 20, 2007

lore
Share & tools
lore
#0 lore raw

Hi All,

I just remembered that I still need to update 2.10.5's sensors-detect for the new fschmd driver. I've left the fscpos and fscher drivers in there for now as fschmd will not be available until 2.6.24 gets released.

But what should I do with the fscscy entry? The fscscy driver is only available in 2.4 and in 2.6 the fschmd driver should be used.

Thanks & Regards,

Hans

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

#1 lore raw

Re: [lm-sensors] What todo with driver entry in sensors-detect for

Hi Hans,

Quoted 6 lines · Hans de Goede

I just remembered that I still need to update 2.10.5's sensors-detect for the new fschmd driver. I've left the fscpos and fscher drivers in there for now as fschmd will not be available until 2.6.24 gets released.

But what should I do with the fscscy entry? The fscscy driver is only available in 2.4 and in 2.6 the fschmd driver should be used.

We have a mechanism for that already, search for @chip_kern24_ids and @chip_kern26_ids. When a different driver should be used for 2.4 and 2.6 kernels, add one entry in each of these lists instead of @chip_ids.

The fscher and fscpos cases are actually more difficult to handle. You changed sensors-detect in branch lm-sensors-3.0.0 to always select the new driver (fschmd) for all FSC chips. This is only correct for kernels

Quoted 1 line

= 2.6.24, while this branch is supposed to support kernels as old as

2.6.5! So you need to update sensors-detect to take this into account, and select the old driver for kernels 2.6.23 and older. Look at chip_special_cases and do something similar.

On top of that, please keep in mind that trunk should still support 2.6 kernels, including future ones, as much as possible. This means that it should also know about the fschmd driver for kernels >= 2.6.24. In fact, I would like to keep sensors-detect in both branches in sync as long as possible, it's much easier to maintain that way.

Thanks,

Signature · 6 lines
Jean Delvare

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

Re: [lm-sensors] What todo with driver entry in sensors-detect for

In reply to Hans de Goede
Quoted 22 lines · Jean Delvare

Hi Hans,

Quoted 6 lines · Hans de Goede

I just remembered that I still need to update 2.10.5's sensors-detect for the new fschmd driver. I've left the fscpos and fscher drivers in there for now as fschmd will not be available until 2.6.24 gets released.

But what should I do with the fscscy entry? The fscscy driver is only available in 2.4 and in 2.6 the fschmd driver should be used.

We have a mechanism for that already, search for @chip_kern24_ids and @chip_kern26_ids. When a different driver should be used for 2.4 and 2.6 kernels, add one entry in each of these lists instead of @chip_ids.

The fscher and fscpos cases are actually more difficult to handle. You changed sensors-detect in branch lm-sensors-3.0.0 to always select the new driver (fschmd) for all FSC chips. This is only correct for kernels

Quoted 1 line

= 2.6.24, while this branch is supposed to support kernels as old as

2.6.5! So you need to update sensors-detect to take this into account, and select the old driver for kernels 2.6.23 and older. Look at chip_special_cases and do something similar.

Quoted 6 lines

On top of that, please keep in mind that trunk should still support 2.6 kernels, including future ones, as much as possible. This means that it should also know about the fschmd driver for kernels >= 2.6.24. In fact, I would like to keep sensors-detect in both branches in sync as long as possible, it's much easier to maintain that way.

I've changed sensors-detect so that it will only advice the use of the fschmd driver for chips with alternatives when the running kernel >= 2.6.24 and I've made sensors-detect identical in both branches again.

Regards,

Hans

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

#3 lore raw

Re: [lm-sensors] What todo with driver entry in sensors-detect for

In reply to Hans de Goede

Hi Hans,

Quoted 3 lines · Hans de Goede

I've changed sensors-detect so that it will only advice the use of the fschmd driver for chips with alternatives when the running kernel >= 2.6.24 and I've made sensors-detect identical in both branches again.

OK, great. I've made some cleanups on top of that, I hope you don't mind:
* Renamed the arrays to something clearer.
* Moved fscscy to the standard 2.4 vs. 2.6 arrays.

Please also remember to add a line to CHANGES when doing non-trivial changes.

Thanks,

Signature · 6 lines
Jean Delvare

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