mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: tpacpi: Mark charging LEDs as safe
@ 2026-11-05 19:24 Josh Triplett
  2026-11-06 20:48 ` Rong Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2026-11-05 19:24 UTC (permalink / raw)
  To: Mark Pearson, Derek J. Clark, Rong Zhang,
	Henrique de Moraes Holschuh, Hans de Goede, Ilpo Järvinen,
	platform-driver-x86, ibm-acpi-devel, linux-kernel

tpacpi can expose the charging LEDs as `tpacpi:orange:batt` (LED 1) and
`tpacpi:green:batt` (LED 2). However, at least on my X1 Carbon Gen 11,
these LEDs get hidden because `TPACPI_SAFE_LEDS` doesn't allow them.

Add these to `TPACPI_SAFE_LEDS`, so that tpacpi can expose them.

This was previously proposed in
https://lore.kernel.org/lkml/20250403040846.7834-1-martin@arp242.net/ .

I'm currently toggling these using write_support via ec_sys, and would
prefer to handle these via the normal LED mechanism.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
 drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/lenovo/thinkpad_acpi.c b/drivers/platform/x86/lenovo/thinkpad_acpi.c
index 4f81855ad721..50a8cff5b374 100644
--- a/drivers/platform/x86/lenovo/thinkpad_acpi.c
+++ b/drivers/platform/x86/lenovo/thinkpad_acpi.c
@@ -5608,7 +5608,7 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
 	"tpacpi::unknown_led3",
 	"tpacpi::thinkvantage",
 };
-#define TPACPI_SAFE_LEDS	0x1481U
+#define TPACPI_SAFE_LEDS	0x1487U
 
 static inline bool tpacpi_is_led_restricted(const unsigned int led)
 {
-- 
2.55.0


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

end of thread, other threads:[~2026-11-06 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 19:24 [PATCH] platform/x86: tpacpi: Mark charging LEDs as safe Josh Triplett
2026-11-06 20:48 ` Rong Zhang
2026-11-06 23:48   ` Josh Triplett

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®