All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] switching from at91 to gpio driver
@ 2007-11-15 23:10 Sergei Sharonov
  2007-11-18 16:43 ` Jean Delvare
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Sergei Sharonov @ 2007-11-15 23:10 UTC (permalink / raw)
  To: lm-sensors

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


_______________________________________________
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:[~2007-11-23 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 23:10 [lm-sensors] switching from at91 to gpio driver Sergei Sharonov
2007-11-18 16:43 ` Jean Delvare
2007-11-20 12:59 ` Atsushi Nemoto
2007-11-20 20:07 ` Jean Delvare
2007-11-22 15:50 ` Atsushi Nemoto
2007-11-22 21:42 ` Jean Delvare
2007-11-23 15:53 ` Atsushi Nemoto

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.