mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rong Zhang <i@rong.moe>
To: "Arnav Kapoor" <kapoorarnav43@gmail.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Ike Panhc <ikepanhc@gmail.com>,
	Mark Pearson <mpearson-lenovo@squebb.ca>,
	 "Derek J . Clark" <derekjohn.clark@gmail.com>,
	Stuart Hayhurst <stuart.a.hayhurst@gmail.com>,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/x86: ideapad-laptop: don't warn about keyboard backlight type 0
Date: Thu, 26 Nov 2026 20:15:50 +0800	[thread overview]
Message-ID: <3e932924940536878264c1ab46d24bd6db362183.camel@rong.moe> (raw)
In-Reply-To: <20261126073107.765676-1-kapoorarnav43@gmail.com>

Hi Arnav,

On Thu, 2026-11-26 at 13:01 +0530, Arnav Kapoor wrote:
> 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.

See https://msgid.link/20261107140700.16036-1-punnaysharma805@gmail.com

Thanks,
Rong

> 
> 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

  reply	other threads:[~2026-11-26 12:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  7:31 Arnav Kapoor
2026-11-26 12:15 ` Rong Zhang [this message]
2026-11-26 15:24   ` Arnav Kapoor
2026-11-26 16:11     ` Arnav Kapoor
2026-11-26 16:26       ` Rong Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e932924940536878264c1ab46d24bd6db362183.camel@rong.moe \
    --to=i@rong.moe \
    --cc=derekjohn.clark@gmail.com \
    --cc=hansg@kernel.org \
    --cc=ikepanhc@gmail.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=kapoorarnav43@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=stuart.a.hayhurst@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®