adm1021 in 2.6.9 kernel not calling attach_adapter()

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

 



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlacey.vcf
Type: text/x-vcard
Size: 325 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080604/f2d12978/attachment.vcf 


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

  Powered by Linux