Re: 2.5.68-bk7: Where oh where have my sensors gone? (i2c)

Greg KH
2003-05-05T18:14:15Z

On Mon, May 05, 2003 at 02:14:25PM -0400, Ed Sweetman wrote:
> hey guys. Notice a missing proc driver? hint: i2c. That's why
> sensors wont work even when you load the modules. At least that's what i
> can tell from what the lm_sensors page mentions and what not.

Huh?
The i2c code now interacts to userspace through sysfs, not /proc
anymore. CaT is properly looking for his sensors in sysfs.

Here's what happens when looking through sysfs on my box running 2.5.69:

# find /sys/ | grep -i i2c
/sys/bus/i2c
/sys/bus/i2c/drivers
/sys/bus/i2c/drivers/lm75
/sys/bus/i2c/drivers/lm75/0-0048
/sys/bus/i2c/devices
/sys/bus/i2c/devices/0-0048
/sys/devices/pci0/00:1f.3/i2c-0
/sys/devices/pci0/00:1f.3/i2c-0/0-0048
/sys/devices/pci0/00:1f.3/i2c-0/0-0048/temp_input
/sys/devices/pci0/00:1f.3/i2c-0/0-0048/temp_min
/sys/devices/pci0/00:1f.3/i2c-0/0-0048/temp_max
/sys/devices/pci0/00:1f.3/i2c-0/0-0048/power
/sys/devices/pci0/00:1f.3/i2c-0/0-0048/name
/sys/devices/pci0/00:1f.3/i2c-0/power
/sys/devices/pci0/00:1f.3/i2c-0/name

Which is what should be showing up on CaT's machine (of the lm75 device
is on his hardware.)

Hope this helps,

greg k-h