]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/platform/x86/Kconfig
platform/x86: topstar-laptop: add Topstar U931/RVP7 WLAN LED workaround
authorGuillaume Douézan-Grard <gdouezangrard@gmail.com>
Wed, 21 Feb 2018 17:00:45 +0000 (18:00 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Feb 2018 16:43:41 +0000 (18:43 +0200)
commitbf8f65da31ca46ae41ba7d932d9f9849d1781b0d
tree9e1c1931acf8930440a873298be84229b9bf7e35
parent2c531437dd446306999528a122b14d7ef2acd768
platform/x86: topstar-laptop: add Topstar U931/RVP7 WLAN LED workaround

Topstar U931 laptops provide a LED synced with the WLAN adapter
hard-blocking state. Unfortunately, some models seem to be defective,
making impossible to hard-block the adapter with the WLAN switch and
thus the LED is useless.

An ACPI method is available to programmatically control this switch and
it indirectly allows to control the LED.

This commit registers the LED within the corresponding subsystem, making
possible for instance to use an rfkill-based trigger to synchronize the
LED with the device state.

This workaround is enabled automatically for Topstar U931/RVP7 laptops
based on a DMI check.

Signed-off-by: Guillaume Douézan-Grard <gdouezangrard@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/topstar-laptop.c