]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: x86-android-tablets: Add support for getting serdev-controller by PCI...
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Dec 2024 20:42:18 +0000 (21:42 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 13:17:53 +0000 (15:17 +0200)
commit7d28fb4d16fb8ad2309616ee3bdcdbf161c13dc5
tree28e83c0fa1d689e9b31fe8bbf01549fc02f575a7
parentdd6db239cb30ef1ccc0084a530839c9897009a6f
platform/x86: x86-android-tablets: Add support for getting serdev-controller by PCI parent

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

Instead they are enumerated through PCI and getting the serdev-controller
by ACPI HID + UID does not work.

Add support for getting the serdev-controller by the PCI devfn of its
parent instead.

This also renames the use_pci_devname flag to use_pci since the former
name now no longer is accurate.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241204204227.95757-8-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/core.c
drivers/platform/x86/x86-android-tablets/other.c
drivers/platform/x86/x86-android-tablets/x86-android-tablets.h