All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10
@ 2026-11-20 23:07 KuwaLee
  2026-11-20 23:11 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: KuwaLee @ 2026-11-20 23:07 UTC (permalink / raw)
  To: Sergio Melas; +Cc: Guenter Roeck, linux-hwmon, LI-JIA-EN

From: LI-JIA-EN <kuwaleecross@gmail.com>

The Lenovo Yoga 9 2-in-1 14ILL10 (DMI product name 83LC) currently
matches the generic "Yoga" quirk, which looks up
\_SB.PCI0.LPC0.EC0.FANS. That object does not exist on this Intel
Lunar Lake platform, so probe fails with -ENODEV and no hwmon device
is registered.

The DSDT exposes two 8-bit fan tachometer fields in the EC0 namespace,
used by the vendor WMI fan speed queries (feature IDs 0x04030001 and
0x04030002) with a multiplier of 100:

  \_SB.PC00.LPCB.EC0.FANS  (fan 1, EC offset 0x06)
  \_SB.PC00.LPCB.EC0.FA2S  (fan 2, EC offset 0x03)

This is the same layout as the Yoga Pro 9 16IMH9 (83DN), so reuse
yoga_pro_83dn_cfg and add a DMI entry matching product name 83LC
ahead of the generic Yoga entry. Document the model in the reference
table.

Tested on a Yoga 9 2-in-1 14ILL10 (BIOS Q9CN31WW): both fans read 0 RPM
when idle and rise to a few thousand RPM under CPU load.

Signed-off-by: LI-JIA-EN <kuwaleecross@gmail.com>
---
 Documentation/hwmon/yogafan.rst | 1 +
 drivers/hwmon/yogafan.c         | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/Documentation/hwmon/yogafan.rst b/Documentation/hwmon/yogafan.rst
index 239c7b5..ff272c5 100644
--- a/Documentation/hwmon/yogafan.rst
+++ b/Documentation/hwmon/yogafan.rst
@@ -93,6 +93,7 @@ immediately to ensure the user knows the fan has stopped.
  80V2 / 81C3    | Yoga 710/720        | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  83E2           | Yoga Pro 7          | 0xFE      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  83DN           | Yoga Pro 9 16IMH9   | 0x06/0xFE | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
+ 83LC           | Yoga 9 2in1 14ILL10 | 0x06/0x03 | \_SB.PC00.LPCB.EC0.FANS/FA2S   |  8-bit | 100
  82A2 / 82A3    | Yoga Slim 7         | 0x06      | \_SB.PCI0.LPC0.EC0.FANS        |  8-bit | 100
  81YM / 82FG    | IdeaPad 5           | 0x06      | \_SB.PCI0.LPC0.EC0.FAN0        |  8-bit | 100
  82JW / 82JU    | Legion 5 (AMD)      | 0xFE/0xFF | \_SB.PCI0.LPC0.EC0.FANS (Fan1) | 16-bit | 1
diff --git a/drivers/hwmon/yogafan.c b/drivers/hwmon/yogafan.c
index 6d1284c..7772e83 100644
--- a/drivers/hwmon/yogafan.c
+++ b/drivers/hwmon/yogafan.c
@@ -285,6 +285,14 @@ static const struct dmi_system_id yogafan_quirks[] = {
 		},
 		.driver_data = (void *)&yoga_pro_83dn_cfg,
 	},
+	{
+		.ident = "Lenovo Yoga 9 2-in-1 14ILL10 (83LC)",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "83LC"),
+		},
+		.driver_data = (void *)&yoga_pro_83dn_cfg,
+	},
 	{
 		.ident = "Lenovo Yoga",
 		.matches = {
-- 
2.56.1


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

* Re: [PATCH] hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10
  2026-11-20 23:07 [PATCH] hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10 KuwaLee
@ 2026-11-20 23:11 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-20 23:11 UTC (permalink / raw)
  To: KuwaLee; +Cc: linux-hwmon

> From: LI-JIA-EN <kuwaleecross@gmail.com>
> 
> The Lenovo Yoga 9 2-in-1 14ILL10 (DMI product name 83LC) currently
> matches the generic "Yoga" quirk, which looks up
> \_SB.PCI0.LPC0.EC0.FANS. That object does not exist on this Intel
> Lunar Lake platform, so probe fails with -ENODEV and no hwmon device
> is registered.
> 
> The DSDT exposes two 8-bit fan tachometer fields in the EC0 namespace,
> used by the vendor WMI fan speed queries (feature IDs 0x04030001 and
> 0x04030002) with a multiplier of 100:
> 
>   \_SB.PC00.LPCB.EC0.FANS  (fan 1, EC offset 0x06)
>   \_SB.PC00.LPCB.EC0.FA2S  (fan 2, EC offset 0x03)
> 
> This is the same layout as the Yoga Pro 9 16IMH9 (83DN), so reuse
> yoga_pro_83dn_cfg and add a DMI entry matching product name 83LC
> ahead of the generic Yoga entry. Document the model in the reference
> table.
> 
> Tested on a Yoga 9 2-in-1 14ILL10 (BIOS Q9CN31WW): both fans read 0 RPM
> when idle and rise to a few thousand RPM under CPU load.
> 
> Signed-off-by: LI-JIA-EN <kuwaleecross@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261120230744.34942-1-kuwaleecross@gmail.com?part=1

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 23:07 [PATCH] hwmon: (yogafan) Add support for Lenovo Yoga 9 2-in-1 14ILL10 KuwaLee
2026-11-20 23:11 ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.