switching from at91 to gpio driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux