linux-stable/drivers/acpi/x86
Hans de Goede 4af6a20d48 ACPI: x86: Add DELL0501 handling to acpi_quirk_skip_serdev_enumeration()
[ Upstream commit 99b572e613 ]

Some recent(ish) Dell AIO devices have a backlight controller board
connected to an UART.

This UART has a DELL0501 HID with CID set to PNP0501 so that the UART is
still handled by 8250_pnp.c. Unfortunately there is no separate ACPI device
with an UartSerialBusV2() resource to model the backlight-controller.
This causes the kernel to create a /dev/ttyS0 char-device for the UART
instead of creating an in kernel serdev-controller + serdev-device pair
for a kernel backlight driver.

Use the existing acpi_quirk_skip_serdev_enumeration() mechanism to work
around this by returning skip=true for tty-ctrl parents with a HID
of DELL0501.

Like other cases where the UartSerialBusV2() resource is missing or broken
this will only create the serdev-controller device and the serdev-device
itself will need to be instantiated by platform code.

Unfortunately in this case there is no device for the platform-code
instantiating the serdev-device to bind to. So also create
a platform_device for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:10:00 +02:00
..
apple.c ACPI: property: Support strings in Apple _DSM props 2023-04-27 18:50:26 +02:00
s2idle.c ACPI: x86: s2idle: Switch to use acpi_evaluate_dsm_typed() 2023-10-03 15:50:03 +02:00
utils.c ACPI: x86: Add DELL0501 handling to acpi_quirk_skip_serdev_enumeration() 2024-04-13 13:10:00 +02:00