mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] serdev: handle devices without an ACPI or device tree
@ 2026-10-23  5:27 ChunAn Wu
  2026-10-23  5:27 ` [PATCH v3 1/3] serdev: handle devices without an ACPI or device tree node ChunAn Wu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: ChunAn Wu @ 2026-10-23  5:27 UTC (permalink / raw)
  To: linux-serial, platform-driver-x86
  Cc: linux-kernel, markus.probst, gregkh, jirislaby, hansg,
	ilpo.jarvinen, mpearson-lenovo, derekjohn.clark

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-23 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23  5:27 [PATCH v3 0/3] serdev: handle devices without an ACPI or device tree ChunAn Wu
2026-10-23  5:27 ` [PATCH v3 1/3] serdev: handle devices without an ACPI or device tree node ChunAn Wu
2026-10-23 12:26   ` Markus Probst
2026-10-23 13:02     ` An Wu
2026-10-23  5:27 ` [PATCH v3 2/3] platform/x86: dell-uart-backlight: Bind through normal serdev matching ChunAn Wu
2026-10-23  5:27 ` [PATCH v3 3/3] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: " ChunAn Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®