platform/x86: dell-dw5826e: Add reset driver for DW5826e
PATCH v8 1/1 platform/x86: dell-dw5826e: Add reset driver for DW5826e
If the DW5826e is in a frozen state and unable to receive USB commands, this driver provides a method for the user to reset the DW5826e via ACPI.
E.g: echo 1 > /sys/bus/platform/devices/PALC0001\:00/wwan_reset
---
Changes in v8:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://patch.msgid.link/[email protected]
To: Hans de Goede <[email protected]>
To: Ilpo Järvinen <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
v8:
- use b4 tool to send to avoiding tabs being replaced by spaces in Compal mail server.
v7:
- Place BIT() into PALC_DSM_FN_TRIGGER_PLDR define
v6:
- Use same define for the DSM check
v5:
- Use BIT() for the DSM method
v4:
- Fix version of the ABI documentation to 7.2
- Add include linux/types.h
v3:
- Rename sysfs attribute from "pldr" to "wwan_reset" for clarity
- Add ABI documentation for the wwan_reset sysfs interface
- Validate _DSM method availability in probe using acpi_check_dsm()
v2:
- Remove extra empty line
- Add missing includes and Remove unnecessary includes, sort includes alphabetically
- Remove noisy dev_info()
- Handle obj->type != ACPI_TYPE_BUFFER as error with proper return code
- Replace miscdevice/file_operations with sysfs attribute (DEVICE_ATTR_WO) to reduce boilerplate
- Propagate trigger_palc_pldr() return code to userspace
- Convert from acpi_driver to platform_driver
---
--- .../ABI/testing/sysfs-driver-dell-dw5826e-reset | 9 +++ drivers/platform/x86/dell/Kconfig | 6 ++ drivers/platform/x86/dell/Makefile | 2 + drivers/platform/x86/dell/dell-dw5826e-reset.c | 93 ++++++++++++++++++++++ 4 files changed, 110 insertions(+)
Documentation/ABI/testing/sysfs-driver-dell-dw5826e-reset new file +9 -0
@@ -0,0 +1,9 @@ +What: /sys/bus/platform/devices/<PALC0001 device>/wwan_reset +Date: April 2026 +KernelVersion: 7.2 +Contact: Jackbb Wu <[email protected]> +Description: + Writing to this file triggers a Platform Level Device Reset + (PLDR) of the Dell DW5826e WWAN module via an ACPI _DSM + method. This can be used to recover the modem when it is in + a frozen state and unable to respond to USB commands.
drivers/platform/x86/dell/Kconfig +6 -0
@@ -276,4 +276,10 @@ config DELL_WMI_SYSMAN To compile this driver as a module, choose M here: the module will be called dell-wmi-sysman. +config DELL_DW5826E_RESET + tristate "Dell DW5826e PLDR reset support" + default m + depends on ACPI + help + This adds support for the Dell DW5826e PLDR reset via ACPI endif # X86_PLATFORM_DRIVERS_DELL
drivers/platform/x86/dell/Makefile +2 -0
@@ -28,3 +28,5 @@ obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o obj-$(CONFIG_DELL_WMI_DDV) += dell-wmi-ddv.o obj-$(CONFIG_DELL_WMI_LED) += dell-wmi-led.o obj-$(CONFIG_DELL_WMI_SYSMAN) += dell-wmi-sysman/ +obj-$(CONFIG_DELL_DW5826E_RESET) += dell-dw5826e-reset.o +
drivers/platform/x86/dell/dell-dw5826e-reset.c new file +93 -0
93 lines not on this page · raw message
---
base-commit: 3036cd0d3328220a1858b1ab390be8b562774e8a
change-id: 20260526-dell-reset-v8-05675476285d
Best regards,
Signature · 1 line
Jack Wu <[email protected]>
Ilpo Järvinen
maintainerQuoted 6 lines · Jack Wu
If the DW5826e is in a frozen state and unable to receive USB commands, this driver provides a method for the user to reset the DW5826e via ACPI.
E.g: echo 1 > /sys/bus/platform/devices/PALC0001\:00/wwan_reset
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: dell-dw5826e: Add reset driver for DW5826e
commit: 1ab843135a7795b0ef37bd7eaf01056276873fd4
--
i.