All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lm-sensors] asb_100 sensor location in /sys heirarchy changes
@ 2007-04-06  7:19 Hans de Goede
  2007-04-06 15:52 ` jk
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: Hans de Goede @ 2007-04-06  7:19 UTC (permalink / raw)
  To: lm-sensors

jk wrote:
> I have a p4pe board with the asb_100 sensor running under linux 2.6.20.
> 
> I now notice that the sensors location varies between
> /sys/bus/i2c/drivers/asb100/0-002d and /sys/bus/i2c/drivers/asb100/2-002d
> between reboots.
> 
> This creates problems for me since I use sensord and a crontab entry to read the
> sensors but now the location of the sensors in /sys varies with each boot.
> 
> Is this a bug?
> If not is there a way to fix the location of the sensor directory in the /sys
> heirarch? (Otherwise, I will need to write some klugey shell script to try to
> find the location at boot-up and then automatically change the crontab entry
> accordingly.
> 
> Thanks!
> 

Interesting, I've been thinking about this for while, as I foresee problems 
here in relation to the DMI based motherboard config project we are working on too.

I think that the currently used scheme where busses are purely numbered instead 
of named needs fixing.

Here is what I have on my system:
/sys/bus/i2c/devices/0-0050
/sys/bus/i2c/devices/0-0051

And here is what I would like to have:
/sys/bus/i2c/devices/viapro-0-0050
/sys/bus/i2c/devices/viapro-0-0051

The idea here is that the 0 added here is in case one can have multiple 
instances of the same i2c master driver

So if I would also have an i2c driver for my ati radeon, then it would look like:
/sys/bus/i2c/devices/viapro-0-0050
/sys/bus/i2c/devices/viapro-0-0051
/sys/bus/i2c/devices/radeon-0-00xx

This way the order in which the drivers get loaded doesn't matter. We do 
ofcourse need to provide compat symlinks with the old names which will still be 
driver loading order dependend.

Regards,

Hans

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

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

end of thread, other threads:[~2007-04-23  5:38 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-06  7:19 [lm-sensors] asb_100 sensor location in /sys heirarchy changes Hans de Goede
2007-04-06 15:52 ` jk
2007-04-06 16:21 ` Hans de Goede
2007-04-06 17:21 ` jk
2007-04-06 18:10 ` jk
2007-04-06 18:51 ` Hans de Goede
2007-04-06 18:57 ` Hans de Goede
2007-04-08 17:50 ` Jean Delvare
2007-04-08 18:40 ` Jean Delvare
2007-04-08 18:42 ` Hans de Goede
2007-04-08 18:49 ` Hans de Goede
2007-04-08 20:17 ` lmsensors
2007-04-09 10:06 ` Jean Delvare
2007-04-09 11:01 ` Jean Delvare
2007-04-17  9:19 ` Jean Delvare
2007-04-17 13:34 ` Jeffrey J. Kosowsky
2007-04-17 19:02 ` Jean Delvare
2007-04-17 20:52 ` Jeffrey J. Kosowsky
2007-04-19 18:35 ` Jean Delvare
2007-04-19 18:50 ` Jeffrey J. Kosowsky
2007-04-23  5:38 ` Jean Delvare

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.