public inbox for platform-driver-x86@vger.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: patches@lists.linux.dev, stable@vger.kernel.org
Cc: "Peter Metz" <peter.metz@unarin.com>,
	"Hans de Goede" <johannes.goede@oss.qualcomm.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Sasha Levin" <sashal@kernel.org>,
	alexhung@gmail.com, hansg@kernel.org,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH AUTOSEL 6.19-5.15] platform/x86: intel-hid: Add Dell 14 Plus 2-in-1 to dmi_vgbs_allow_list
Date: Tue, 10 Mar 2026 05:01:17 -0400	[thread overview]
Message-ID: <20260310090145.2709021-17-sashal@kernel.org> (raw)
In-Reply-To: <20260310090145.2709021-1-sashal@kernel.org>

From: Peter Metz <peter.metz@unarin.com>

[ Upstream commit 6b3fa0615cd8432148581de62a52f83847af3d70 ]

The Dell 14 Plus 2-in-1 (model DB04250) requires the VGBS allow list
entry to correctly enable the tablet mode switch. Without this, the
chassis state is not reported, and the hinge rotation only emits
unknown scancodes.

Verified on Dell 14 Plus 2-in-1 DB04250.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221090
Signed-off-by: Peter Metz <peter.metz@unarin.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260213044627.203638-1-peter.metz@unarin.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---

LLM Generated explanations, may be completely bogus:

## Analysis

### What the commit does

This commit adds a single DMI entry for the "Dell 14 Plus 2-in-1
DB04250" to the `dmi_vgbs_allow_list` in
`drivers/platform/x86/intel/hid.c`. This allow list controls which
devices can use the VGBS (Virtual GPIO Button Status) ACPI method to
report chassis/tablet mode state.

### Problem it solves

Without this entry, the Dell 14 Plus 2-in-1 cannot correctly report
tablet mode switch state. The hinge rotation only emits unknown
scancodes, meaning the device doesn't properly switch between laptop and
tablet modes. This is a real usability issue for owners of this specific
2-in-1 device.

### Classification: Hardware Quirk / Device Allow List Entry

This falls squarely into the **"QUIRKS and WORKAROUNDS"** exception
category for stable backports:
- It adds a device-specific DMI match to an existing allow list
- It fixes a real hardware issue (tablet mode not working)
- The pattern is identical to existing entries in the same list
  (multiple Dell, HP entries already present)

### Code change analysis

The diff is trivial — 6 lines added to insert a new `dmi_system_id`
struct into the `dmi_vgbs_allow_list` array, matching `DMI_SYS_VENDOR =
"Dell Inc."` and `DMI_PRODUCT_NAME = "Dell 14 Plus 2-in-1 DB04250"`. The
change follows the exact same pattern as the surrounding entries.

### Risk assessment

- **Risk: Extremely low.** The DMI match is specific to one device
  model. It cannot affect any other hardware.
- **Scope: Minimal.** 6 lines of declarative data, no logic changes.
- **Testing: Verified.** The commit message states "Verified on Dell 14
  Plus 2-in-1 DB04250."
- **Review: Thorough.** Reviewed by both Hans de Goede (platform/x86
  maintainer) and Ilpo Järvinen (Intel platform maintainer).

### Stable criteria check

1. **Obviously correct and tested**: Yes — verified on the hardware,
   reviewed by two maintainers
2. **Fixes a real bug**: Yes — tablet mode doesn't work without it
   (bugzilla #221090)
3. **Important issue**: Yes — core functionality of a 2-in-1 device is
   broken
4. **Small and contained**: Yes — 6 lines, single file, data-only change
5. **No new features**: Correct — enables existing functionality on
   specific hardware
6. **Applies cleanly**: Should apply cleanly as long as the surrounding
   entries exist

### Verification

- Verified the diff is a pure data addition to an existing DMI allow
  list array — no logic changes
- Confirmed the pattern matches existing entries in the same list (Dell
  Pro Rugged 10/12 Tablet entries directly above)
- The commit references bugzilla.kernel.org bug #221090, confirming a
  user-reported issue
- Reviewed-by tags from Hans de Goede and Ilpo Järvinen confirm
  maintainer approval
- The `dmi_vgbs_allow_list` structure is used in the existing
  `intel_hid_probe()` path — this is well-established code

### Conclusion

This is a textbook stable backport candidate: a tiny, zero-risk hardware
quirk addition that fixes real functionality for a specific device
model, with user bug report, hardware verification, and maintainer
review.

**YES**

 drivers/platform/x86/intel/hid.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/platform/x86/intel/hid.c b/drivers/platform/x86/intel/hid.c
index 560cc063198e1..5b475a09645a3 100644
--- a/drivers/platform/x86/intel/hid.c
+++ b/drivers/platform/x86/intel/hid.c
@@ -189,6 +189,12 @@ static const struct dmi_system_id dmi_vgbs_allow_list[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "Dell Pro Rugged 12 Tablet RA02260"),
 		},
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Dell 14 Plus 2-in-1 DB04250"),
+		},
+	},
 	{ }
 };
 
-- 
2.51.0


  parent reply	other threads:[~2026-03-10  9:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260310090145.2709021-1-sashal@kernel.org>
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: oxpec: Add support for OneXPlayer X1z Sasha Levin
2026-03-10  9:01 ` Sasha Levin [this message]
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: oxpec: Add support for Aokzoe A2 Pro Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19] platform/x86: hp-wmi: Add Victus 16-d0xxx support Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-5.10] platform/x86: touchscreen_dmi: Add quirk for y-inverted Goodix touchscreen on SUPI S10 Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-5.10] platform/x86: intel-hid: Enable 5-button array on ThinkPad X1 Fold 16 Gen 1 Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: hp-wmi: Add Omen 16-xd0xxx fan and thermal support Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: hp-wmi: Add Omen 16-wf0xxx " Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: oxpec: Add support for OneXPlayer X1 Air Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19] platform/x86: hp-wmi: add Omen 14-fb1xxx (board 8E41) support Sasha Levin
2026-03-10  9:01 ` [PATCH AUTOSEL 6.19-6.18] platform/x86: oxpec: Add support for OneXPlayer APEX Sasha Levin

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=20260310090145.2709021-17-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=alexhung@gmail.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=johannes.goede@oss.qualcomm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=peter.metz@unarin.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=stable@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