]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: x86: Make UART skip quirks work on PCI UARTs without an UID
authorHans de Goede <hdegoede@redhat.com>
Sat, 9 Nov 2024 21:59:36 +0000 (22:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Nov 2024 20:20:33 +0000 (21:20 +0100)
commit7f261203d7c2e0c06e668b25dfaaee091a79ab25
treea5df4e3f9c61827ca3b0776d4679cc7134615cc6
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
ACPI: x86: Make UART skip quirks work on PCI UARTs without an UID

The Vexia EDU ATLA 10 tablet (9V version) which shipped with Android 4.2
as factory OS has the usual broken DSDT issues for x86 Android tablets.

On top of that this tablet is special because all its LPSS island
peripherals are enumerated as PCI devices rather then as ACPI devices as
they typically are.

For the x86-android-tablets kmod to be able to instantiate a serdev client
for the Bluetooth HCI on this tablet, an ACPI_QUIRK_UART1_SKIP quirk is
necessary.

Modify acpi_dmi_skip_serdev_enumeration() to work with PCI enumerated
UARTs without an UID, such as the UARTs on this tablet.

Also make acpi_dmi_skip_serdev_enumeration() exit early if there are no
quirks, since there is nothing to do then.

And add the necessary quirks for the Vexia EDU ATLA 10 tablet.

This should compile with CONFIG_PCI being unset without issues because
dev_is_pci() is defined as "(false)" then.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patch.msgid.link/20241109215936.83004-1-hdegoede@redhat.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/utils.c