]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: x86-android-tablets: Add support for getting i2c_adapter by PCI parent...
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Nov 2024 20:08:47 +0000 (21:08 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 6 Nov 2024 13:16:47 +0000 (15:16 +0200)
commit5b78e809f94840fa45173cd3e34bbe815c6865b4
tree5c6ec613b516d005dfd5179cea6f341fd8a55f9f
parent01fbfcb3acbb2e4fd34bf36a87c75299a85a0cf9
platform/x86: x86-android-tablets: Add support for getting i2c_adapter by PCI parent devname()

On the Vexia EDU ATLA 10 tablet, which ships with Android + a custom Linux
(guadalinex) using the custom Android kernel the I2C controllers are not
enumerated as ACPI devices as they typically are.

Instead they are enumerated as PCI devices which do not have ACPI firmware
nodes associated with them, so getting the i2c_adapter by the ACPI path of
its firmware node does not work.

Add support for getting the i2c_adapter by the devname() of its PCI parent
instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241104200848.58693-3-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/Kconfig
drivers/platform/x86/x86-android-tablets/core.c
drivers/platform/x86/x86-android-tablets/x86-android-tablets.h