All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] tempX_source sysfs attribute needed ?
@ 2011-02-08 17:10 Guenter Roeck
  2011-02-08 18:03 ` Ian Dobson
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Guenter Roeck @ 2011-02-08 17:10 UTC (permalink / raw)
  To: lm-sensors

Hi all,

in the recent months, I have seen two instances where a sysfs attribute 
identifying the source associated with a temperature sensor would have been 
helpful.

One is max6639. For this chip, the source of the second temperature channel
can be configured to be local or remote.

The others are W83677HG-B, NCT6775F, and NCT6776F. Those chips have four to six
temperature channels with a configurable source.

Current approach is to stick with whatever is configured by the BIOS for the Nuvoton
chips, and to use the local source for the max6639 driver. For the Nuvoton chips,
my prototype driver for NCT6775F and NCT6776F reports the temperature source 
in tempX_label.

Possible solutions might be:
- Stick with the current situation, ie do nothing.
- Use module parameters. Doesn't really work well for max6639 since it affects 
  all instances of the driver, and if the driver is built into the kernel.
- Use platform data. Might work for max6639, but not for the Nuvoton chips.
- Define a new sysfs attribute to make the temperature source configurable,
  and to report the current selection.

Any thoughts/comments ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-07 18:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 17:10 [lm-sensors] tempX_source sysfs attribute needed ? Guenter Roeck
2011-02-08 18:03 ` Ian Dobson
2011-02-08 20:06 ` Guenter Roeck
2011-03-07 16:54 ` Jean Delvare
2011-03-07 17:58 ` Guenter Roeck
2011-03-07 18:19 ` Jean Delvare
2011-03-07 18:54 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.