[PATCH v3 0/3] serdev: handle devices without an ACPI or device tree
From: ChunAn Wu
Date: Fri Oct 23 2026 - 01:36:16 EST
Driver-created serdev clients without an ACPI companion or device tree
node currently have no modalias and cannot be matched to a driver:
their modalias sysfs read returns -ENODEV and their creators force a
bind with device_driver_attach().
Backlight function on dell-uart-backlight is not affected: that class
device is registered independently and gets its own add uevent. The
user-visible breakage is the failing modalias read on an existing
serdev child -- Checkbox dkms_info_attachment aborts with
"OSError: [Errno 19] No such device".
Resolve the two long-standing serdev-core TODOs by adding a creator-set
modalias and an id_table, modelled on the SPI bus. ACPI and OF match
first and are unchanged. Convert dell-uart-backlight and the Lenovo
Yoga Tab 2 Pro fastcharger to this path and drop their force-attach
workarounds.
ChunAn Wu (3):
serdev: handle devices without an ACPI or device tree node
platform/x86: dell-uart-backlight: Bind through normal serdev matching
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Bind through
normal serdev matching
MAINTAINERS | 1 +
.../platform/x86/dell/dell-uart-backlight.c | 18 +++----
.../lenovo/yoga-tab2-pro-1380-fastcharger.c | 27 +++++-----
drivers/tty/serdev/core.c | 54 ++++++++++++++++---
include/linux/device-id/serdev.h | 16 ++++++
include/linux/serdev.h | 34 ++++++++++++
6 files changed, 119 insertions(+), 31 deletions(-)
create mode 100644 include/linux/device-id/serdev.h
base-commit: 9e947d96915af63e28896caae85a81b74855621b
--
2.34.1