mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: ideapad-laptop: don't warn about keyboard backlight type 0
@ 2026-11-26  7:31 Arnav Kapoor
  2026-11-26 12:15 ` Rong Zhang
  0 siblings, 1 reply; 5+ messages in thread
From: Arnav Kapoor @ 2026-11-26  7:31 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: Ike Panhc, Mark Pearson, Derek J . Clark, Rong Zhang,
	Stuart Hayhurst, platform-driver-x86, linux-kernel, Arnav Kapoor

On the Lenovo V14 G2 ITL (82KA), which has no keyboard backlight, every
boot logs:

  ideapad_acpi VPC2004:00: Unknown keyboard type: 0

followed by "Keyboard backlight control not available". The KBLC type
query (Arg0 == 1) in this machine's DSDT reads KBGC from the EC but
always returns Zero, and KBLC also returns Zero whenever the EC is not
available or LFCM cannot be acquired. So 0 is not an unknown backlight
type but the value for "no KBLC keyboard backlight", which the driver
already handles by leaving features.kbd_bl unset.

Only warn for non-zero values, and add the missing newline to the
message.

Fixes: ecaa1867b524 ("platform/x86: ideapad-laptop: Add support for keyboard backlights using KBLC ACPI symbol")
Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com>
---
Tested on a V14 G2 ITL (BIOS GGCN55WW) with the 7.0.14-based
kernel: reloading the stock ideapad-laptop logs the warning, the same
module with this patch applied doesn't, and the rest of the probe output
and the sysfs state (platform profiles, fn_lock, camera_power,
usb_charging, charge_types) are unchanged. Build-tested (W=1) on pdx86
for-next.

 drivers/platform/x86/lenovo/ideapad-laptop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index d2344dcd6945..d5679ff2e8ab 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -2627,9 +2627,9 @@ static int ideapad_check_features(struct ideapad_private *priv)
 			} else if (val == KBD_BL_TRISTATE_AUTO_TYPE) {
 				priv->features.kbd_bl = true;
 				priv->kbd_bl.type = KBD_BL_TRISTATE_AUTO;
-			} else {
+			} else if (val) {
 				dev_warn(&priv->platform_device->dev,
-					 "Unknown keyboard type: %lu",
+					 "Unknown keyboard type: %lu\n",
 					 val);
 			}
 		}

base-commit: 61c0dac952b9308884936d05cce97565a5c89af4
-- 
2.53.0


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

end of thread, other threads:[~2026-11-26 16:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  7:31 [PATCH] platform/x86: ideapad-laptop: don't warn about keyboard backlight type 0 Arnav Kapoor
2026-11-26 12:15 ` Rong Zhang
2026-11-26 15:24   ` Arnav Kapoor
2026-11-26 16:11     ` Arnav Kapoor
2026-11-26 16:26       ` Rong Zhang

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®