mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiajun Leng <adolphpi@outlook.com>
To: platform-driver-x86@vger.kernel.org
Cc: "Antheas Kapenekakis" <lkml@antheas.dev>,
	"Derek John Clark" <derekjohn.clark@gmail.com>,
	"Joaquín Ignacio Aramendía" <samsagax@gmail.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	linux-kernel@vger.kernel.org,
	"Jiajun Leng" <adolphpi@outlook.com>
Subject: [PATCH] platform/x86: oxpec: add OneXPlayer X2 Mini (G3E) DMI entry
Date: Sun,  1 Nov 2026 09:26:33 +0800	[thread overview]
Message-ID: <TY7PR01MB1374656B7810521751CB248D4DB6B2@TY7PR01MB13746.jpnprd01.prod.outlook.com> (raw)

The OneXPlayer X2 Mini (G3E) is the Intel variant and reports DMI board
name "ONEXPLAYER X2Mini". It is not covered by the existing "ONEXPLAYER
X2Mini PRO" entry, which is the AMD board using oxp_fly.

Map it to oxp_g1_i, the profile used by the ONEXPLAYER 3, which has the
same Intel EC layout.

Verified on Bazzite 44 with kernel 7.2.11-ogc4.1.fc44.x86_64: fan
reading, manual PWM and charging control work.

AI assistance: Claude (Anthropic) was used to draft this changelog and the
diff. The submitter reviewed the change, built it as an out-of-tree module
and tested it on the hardware.

Signed-off-by: Jiajun Leng <adolphpi@outlook.com>
---
 drivers/platform/x86/oxpec.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/platform/x86/oxpec.c b/drivers/platform/x86/oxpec.c
index c4c4babe8e30..50d169302fc3 100644
--- a/drivers/platform/x86/oxpec.c
+++ b/drivers/platform/x86/oxpec.c
@@ -230,6 +230,13 @@ static const struct dmi_system_id dmi_table[] = {
 		},
 		.driver_data = (void *)oxp_g1_i,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),
+			DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONEXPLAYER X2Mini"),
+		},
+		.driver_data = (void *)oxp_g1_i,
+	},
 	{
 		.matches = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),
-- 
2.53.0


             reply	other threads:[~2026-11-01  1:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-01  1:26 Jiajun Leng [this message]
2026-11-01  1:35 ` Antheas Kapenekakis
2026-11-01  1:37   ` Antheas Kapenekakis
2026-11-01  2:18 ` [PATCH v2] " Jiajun Leng
2026-11-01  2:24   ` Antheas Kapenekakis

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=TY7PR01MB1374656B7810521751CB248D4DB6B2@TY7PR01MB13746.jpnprd01.prod.outlook.com \
    --to=adolphpi@outlook.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@antheas.dev \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=samsagax@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®