WSL2-Linux-Kernel/drivers/tty/serdev
Hans de Goede 0890186a96 serdev: Do not instantiate serdevs on boards with known bogus DSDT entries
x86 ACPI devices which ship with only Android as their factory image use
older kernels which do not yet support ACPI serdev enumeration, as such
the serdev information in their ACPI tables is not reliable.

For example on the Asus ME176C tablet the serdev describing the Bluetooth
HCI points to the serdev_controller connected to the GPS and the other way
around.

Use the new acpi_quirk_skip_serdev_enumeration() helper to identify
known boards with this issue and then either abort adding the serdev
controller (creating a tty cdev instead) or only create the controller
leaving the instantation of the serdev itself up to platform code.

In the case where only the serdev controller is created the necessary
serdevs will instead be instantiated by the
drivers/platform/x86/x86-android-tablets.c kernel module.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-12-30 19:01:42 +01:00
..
Kconfig tty: add SPDX identifiers to Kconfig and Makefiles 2019-04-04 18:48:43 +02:00
Makefile Revert "serdev: simplify Makefile" 2019-12-18 15:01:41 +01:00
core.c serdev: Do not instantiate serdevs on boards with known bogus DSDT entries 2021-12-30 19:01:42 +01:00
serdev-ttyport.c serdev: ttyport: restore client ops on deregistration 2020-02-10 12:26:44 -08:00