[lm-sensors] switching from at91 to gpio driver

Sergei Sharonov sergei.sharonov at halliburton.com
Fri Nov 16 00:10:51 CET 2007


Hi,

I switched from at91 i2c driver (hardware controller) to i2c-gpio driver in
kernel 2.6.23.1. All chip drivers failed to hook into i2c-gpio. The problem was
traced to the fact that in case of i2c-gpio adapter->class is not set to
I2C_CLASS_HWMON whereas in case of i2c-at91 it is. Chip driver (e.g. lm92)
checks for it in xxx_attach_adapter() function and does not call i2c_probe() if
it is not set.
Skipping the check allows lm92 driver to function.

Now, is it a bug or there is a place where I can tell i2c-gpio driver to set
class?

Thanks,

Sergei Sharonov




More information about the lm-sensors mailing list