Re: ACPI: Can I use I2cSerialBus with a PCI I2C controller?

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

 



> The next issue is that the I2C-core isn't matching the device to the
> "at24" driver, which has the alias "24c02".

Here is what I found.
i2c-core is creating the device with the ACPI name "24C02:00".
The at24 driver uses "24c02" as the alias.
i2c-code is matching devices to drivers using strcmp().

Result: no match. ("24c02" != "24C02:00").

If I modify acpi_i2c_add_device() to cut off the name at the ':' and
covert to lowercase when populating info.type, it matches and works.
I must be missing something here, because this would have never worked as-is.
I'll ask on the I2C mailing list.

Thanks again,
Ben
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux