From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: "Коненко Андрей Викторович" <admin@aquinas.su>
Cc: LKML <linux-kernel@vger.kernel.org>,
platform-driver-x86@vger.kernel.org,
Hans de Goede <hansg@kernel.org>
Subject: Re: [PATCH v8] platform/x86: hp-wmi: Add multicolor LED support for HP keyboard backlight
Date: Wed, 10 Jun 2026 15:18:39 +0300 (EEST) [thread overview]
Message-ID: <1f323c53-4328-dd15-2f8d-04b041cc0e6b@linux.intel.com> (raw)
In-Reply-To: <Jhl3t35KQoOh1UjBI9iDGA@aquinas.su>
[-- Attachment #1: Type: text/plain, Size: 4609 bytes --]
On Mon, 18 May 2026, Коненко Андрей Викторович wrote:
> >
> > I'm afraid the names are still wrong. Your patch results in e.g. :
> >
> > hp::kbd_backlight_zone-right
> >
> > where as per:
> >
> > https://lore.kernel.org/linux-leds/20260504145434.12746-1-johannes.goede@oss
> > .qualcomm.com/
> >
> > this should be:
> >
> > hp::kbd_zoned_backlight-right
> >
> > Regards,
> >
> > Hans
> >
>
> I would like to sincerely apologize for the mistake in understanding the
> documentation. I received feedback pointing out my error, corrected it
> accordingly, but unfortunately, there was still an oversight. After being
> notified of the second error, I have now thoroughly reviewed everything again
> and made all necessary corrections.
>
> I truly appreciate your patience and guidance throughout this process. Your
> feedback has been extremely helpful in helping me reach the correct
> understanding. I am committed to ensuring that all future submissions are
> fully compliant with the documentation requirements.
>
> Thank you for your time and understanding.
>
> ---
>
> From: Edip Hazuri <edip@medip.dev>
>
> Add support for the HP keyboard RGB backlight found on HP OMEN and
> HP Victus laptops. These keyboards expose per-zone RGB control through
> WMI commands.
>
> Register multicolor LED class devices for each keyboard zone (up to 4
> zones, depending on the keyboard type). Each zone exposes individual
> red, green, and blue channels via the multicolor LED subsystem.
>
> Also hardware-initiated brightness changes (e.g. via the keyboard
> backlight hotkey, mostly fn+f4) are reported.
>
> The color data is stored in a 128-byte color table managed by the
> firmware, with RGB values starting at offset 25, packed sequentially
> per zone.
>
> Signed-off-by: Konenko Andrey Viktorovich <admin@aquinas.su>
>
> ---
>
> Changes since v7:
> - The LED class device names changed to be consistent with the documentation.
>
> Changes since v6:
> - The LED class device names have been made more consistent with the
> documentation, in accordance with patch https://lore.kernel.org/linux-leds/
> 20260504145434.12746-1-johannes.goede@oss.qualcomm.com/
> underscores have been replaced with dashes where indicated.
>
> Changes since v5:
> - LED class device names changed from a number to using a descriptive name
> for each zone.
>
> v4: https://lore.kernel.org/all/20260303084022.7223-3-edip@medip.dev/
>
> Changes since v4:
> - Fix circular dependencies
>
> Changes since v3:
> - Merge the changes into a single commit
>
> Changes since v1:
> - Fix mentioned style errors
> - Add Kconfig dependencies
>
> ---
>
> drivers/platform/x86/hp/Kconfig | 2 +
> drivers/platform/x86/hp/hp-wmi.c | 284 ++++++++++++++++++++++++++++++-
> 2 files changed, 285 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/hp/Kconfig b/drivers/platform/x86/hp/Kconfig
> index dd51491b9bcd..2a1841cbec76 100644
> --- a/drivers/platform/x86/hp/Kconfig
> +++ b/drivers/platform/x86/hp/Kconfig
> @@ -45,6 +45,8 @@ config HP_WMI
> select INPUT_SPARSEKMAP
> select ACPI_PLATFORM_PROFILE
> select HWMON
> + select LEDS_CLASS
> + select LEDS_CLASS_MULTICOLOR
> help
> Say Y here if you want to support WMI-based hotkeys on HP laptops
> and
> to read data from WMI such as docking or ambient light sensor
> state.
> diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-
> wmi.c
> index d1cc6e7d176c..19da18f68337 100644
> --- a/drivers/platform/x86/hp/hp-wmi.c
> +++ b/drivers/platform/x86/hp/hp-wmi.c
> @@ -14,6 +14,7 @@
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> #include <linux/acpi.h>
> +#include <linux/array_size.h>
> #include <linux/cleanup.h>
> #include <linux/compiler_attributes.h>
> #include <linux/dmi.h>
> @@ -23,6 +24,8 @@
> #include <linux/input.h>
> #include <linux/input/sparse-keymap.h>
> #include <linux/kernel.h>
> +#include <linux/led-class-multicolor.h>
> +#include <linux/leds.h>
> #include <linux/limits.h>
> #include <linux/minmax.h>
> #include <linux/module.h>
> @@ -57,6 +60,7 @@ enum hp_ec_offsets {
>
> #define HP_FAN_SPEED_AUTOMATIC 0x00
> #define HP_POWER_LIMIT_DEFAULT 0x00
> +#define HP_COLOR_TABLE_PADDING 25
> #define HP_POWER_LIMIT_NO_CHANGE 0xFF
>
> #define zero_if_sup(tmp) (zero_insize_support?0:sizeof(tmp)) // use when zero
> insize is required
Long lines in this patch seem corrupted.
--
i.
next prev parent reply other threads:[~2026-06-10 12:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 6:56 [PATCH v6] platform/x86: hp-wmi: Add multicolor LED support for HP keyboard backlight Коненко Андрей Викторович
2026-05-15 8:00 ` Hans de Goede
2026-05-15 11:49 ` [PATCH v7] " Коненко Андрей Викторович
2026-05-18 8:26 ` Hans de Goede
2026-05-18 13:36 ` [PATCH v8] " Коненко Андрей Викторович
2026-06-08 11:29 ` Hans de Goede
2026-06-10 12:18 ` Ilpo Järvinen [this message]
2026-06-14 13:36 ` [PATCH v9] " Коненко Андрей Викторович
2026-06-14 14:03 ` [PATCH v10] " Коненко Андрей Викторович
2026-07-01 10:54 ` Ilpo Järvinen
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=1f323c53-4328-dd15-2f8d-04b041cc0e6b@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=admin@aquinas.su \
--cc=hansg@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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