* [lm-sensors] adm1021 in 2.6.9 kernel not calling attach_adapter()
@ 2008-06-04 15:33 Warrick Lacey
0 siblings, 0 replies; only message in thread
From: Warrick Lacey @ 2008-06-04 15:33 UTC (permalink / raw)
To: lm-sensors
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]
Hello all,
I'm presently struggling to bring up the adm1021 driver under 2.6.9 in a
VR7 device.
I see the i2c-piix4 driver attaching and then when the adm1021 is
inserted, its attach function is not called, as if the kernel has no
adapters to bind to the adm1021_driver.
int i2c_add_driver(struct i2c_driver *driver)
{
struct list_head *item;
struct i2c_adapter *adapter;
int res = 0;
down(&core_lists);
/* add the driver to the list of i2c drivers in the driver core */
driver->driver.name = driver->name;
driver->driver.bus = &i2c_bus_type;
driver->driver.probe = i2c_device_probe;
driver->driver.remove = i2c_device_remove;
res = driver_register(&driver->driver);
if (res)
goto out_unlock;
list_add_tail(&driver->list,&drivers);
pr_debug("i2c-core: driver %s registered.\n", driver->name);
/* now look for instances of driver on our adapters */
if (driver->flags & I2C_DF_NOTIFY) {
list_for_each(item,&adapters) {
adapter = list_entry(item, struct i2c_adapter, list);
/* driver->attach_adapter(adapter); <-------------- */this
_should_ call adm1021's attach_adapter() function but there is no
iteration because presumably there are no adapters.
}
}
What do I need to do to get the kernel to see/detect my adm1021 device,
it is hanging off an Intel piix4 device.
I'm probably doing something stupid but after three days what that
stupid thing is eludes me.
thanks
Warrick
[-- Attachment #2: wlacey.vcf --]
[-- Type: text/x-vcard, Size: 325 bytes --]
begin:vcard
fn:Warrick Lacey
n:Lacey;Warrick
org:Salient Systems;Engineering
adr:Tuller Road;;4394 Suite K ;Dublin;Ohio;43017;U.S.A.
email;internet:wlacey@salientsystems.com
title:Software Developer
tel;work:(614) 792-5800
tel;cell:(614) 203-1323
x-mozilla-html:FALSE
url:http://www.salientsystems.com
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-04 15:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 15:33 [lm-sensors] adm1021 in 2.6.9 kernel not calling attach_adapter() Warrick Lacey
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.