From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.9 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796130233; b=C1EimzP/hTC5fhvQ52EMSR1IxQ2gTn8yIPF8cis+xE9sGpoXDBeU2PG8AKfOrgapKYOa khuo6OPQDG7ZtBzf0WqOZIAJCZSdXhVzll2j+QnTOxBSK/SnP1nW8A9xH7e+6zedqEnFW dATkGrrbko1RjM+0Ic+HrUtu6DAHhrATAPcF4puRchebilIgR6hbf/wzO97Vcyhby1RFh /2IeSDuHmPkxxlJZYmhc7446oWxumyEwdJDDPSQjmHdMM73nnOI4634ChC21tbkz1jfr+ XcBruw6dNygVuMRVMu6dtLhLYX/9sowavOZhlsXIOUi0pAm1KbEcQCsyPR3/e5aSieg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130233; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:Date:To:cc: Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type; bh=fT5AOmGaIj0A55xt5JaXyFoX6aqAINtrFMEh4rqXiEA=; b=sIUTT1AdphVLjBRDcTzeIlM4yNBoczbdFLYtDtUpVKEVHouzetTwAP4S73fQzACMp91a uvK4olddz/f7MVLJk5nGRbb9je8TEehuOJ/O42V7+OtGPxMeLK1O/wk6QvvSsNU3HknEJ Zgdxl+ad0WgDOB62LZtz3pCYlAMFzxCcZiDPStiEfidubPXB1xltue8wc+UwrgFFHReD6 D8E3k1XVDi+WV6xMG4fJxcc30uEujnEp37lx5Dn+qBj00MvuJNVnhYjxTLxBiHKemne9a Tt/sMI8tiZPkQFAL6l3zlRRdlJct9SamAPVT+PBWJiQH2Orl7uNcpw+5KLj27Chb5PA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="Wx6uQ/H/"; arc=none smtp.remote-ip=192.198.163.9 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0EA5606A325; Tue, 1 Dec 2026 13:03:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A0EA5606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Wx6uQ/H/ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796130232; x=1827666232; h=from:date:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=fT5AOmGaIj0A55xt5JaXyFoX6aqAINtrFMEh4rqXiEA=; b=Wx6uQ/H/8RqxBYNAbh40Nde1+Zolx+TmgcnYStJfhBk4CS+DyIif47t/ ZHmxFEuVeVJ29BhoEHZwmtdkHmPuAMFRPSplPEsLFOO68pmHwGnUX+f7x 3poynKy23fpW5MfE0mqtUCGQZvvKp1rClRrSSJFyW5wwA+lOmOFUSb1t7 FwL3Fx2IdfYYPk80Syrs9epmHuyEQUCp427Mbnbn3xtqL4/+EAo8ZGiUf T2wJPNwYH6qYIynugHX9p11dgl/5VtD9EnGr8eYxzcOmFDGksqTHcnYUI rMFzZ3c1dN6GpP+eqq5+gC5gGZWfWvEHPop62B2hNx+nrBYSvEybaJ5Zz g==; X-CSE-ConnectionGUID: a6sejrY9TUeVijIPip6Ycw== X-CSE-MsgGUID: wx3KFe3yRIqT+455yvwixQ== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4857748" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4857748" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 05:03:52 -0800 X-CSE-ConnectionGUID: D7fuseHFQPGJexvZNyjd8A== X-CSE-MsgGUID: eZWFqrE6SCGTI3dhCDwRmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13466173" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.21]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 05:03:48 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Tue, 1 Dec 2026 15:03:44 +0200 (EET) To: Punnay Sharma , Arnav Kapoor , Rong Zhang , Mark Pearson cc: Hans de Goede , Ike Panhc , "Derek J. Clark" , Stuart Hayhurst , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH] platform/x86: ideapad-laptop: Do not warn if KBLC reports no backlight In-Reply-To: <20261107140700.16036-1-punnaysharma805@gmail.com> Message-ID: <43b41d16-499f-b3bb-82f3-ea82f7ea99db@linux.intel.com> References: <20261107140700.16036-1-punnaysharma805@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Sat, 7 Nov 2026, Punnay Sharma wrote: > On probe, the driver asks KBLC for the keyboard backlight type and > warns about any result other than 0x5 or 0x7. > > The LOQ 15IRX10 with an RGB keyboard returns 0x1. Its KBLC sets bit 0 > in every result, and sets bit 2 for the type query only if the EC field > GZ35 is 0. On this model GZ35 is not 0, and a separate USB controller > (048d:c693) drives the keyboard lights. So 0x1 means that KBLC controls > no keyboard backlight, but the driver logs on every boot: > > ideapad_acpi VPC2004:00: Unknown keyboard type: 1 > > Add KBD_BL_NONE_TYPE for 0x1 and do not warn about it. Hi all, Given what Punnay says above about BIT(0) and what Arnav's device reports [1], does the BIT(0) have anything to do with the backlight type? If not, why are we using that bit while reporting an error about unknown backlight type? [1] https://lore.kernel.org/all/20261126073107.765676-1-kapoorarnav43@gmail.com/ -- i. > Tested on a Lenovo LOQ 15IRX10 (BIOS R3CN44WW). > > Signed-off-by: Punnay Sharma > --- > KBD_BL_NONE_TYPE is placed last to avoid a conflict with Rong Zhang's > pending keyboard backlight series. > > The same warning appears on other models, e.g. LOQ 15AHP10 [1] and > Legion 5 Pro 16ACH6H [2]. > > [1] https://lore.kernel.org/all/3f03931e7eafcb1781ca3cf922e588ab57caadcf@lavx.hu/ > [2] https://github.com/johnfanv2/LenovoLegionLinux/issues/336 > > drivers/platform/x86/lenovo/ideapad-laptop.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c > index fcb5ed7035f5..eb4158bed264 100644 > --- a/drivers/platform/x86/lenovo/ideapad-laptop.c > +++ b/drivers/platform/x86/lenovo/ideapad-laptop.c > @@ -148,6 +148,7 @@ enum { > #define KBD_BL_QUERY_TYPE 0x1 > #define KBD_BL_TRISTATE_TYPE 0x5 > #define KBD_BL_TRISTATE_AUTO_TYPE 0x7 > +#define KBD_BL_NONE_TYPE 0x1 /* No backlight through KBLC */ > > #define KBD_BL_COMMAND_GET 0x2 > #define KBD_BL_COMMAND_SET 0x3 > @@ -2246,7 +2247,7 @@ 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 != KBD_BL_NONE_TYPE) { > dev_warn(&priv->platform_device->dev, > "Unknown keyboard type: %lu", > val); > > base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8 > -- i.