[PATCH AUTOSEL 6.19-6.18] platform/x86: oxpec: Add support for Aokzoe A2 Pro
From: Sasha Levin
Date: Tue Mar 10 2026 - 05:11:19 EST
From: Antheas Kapenekakis <lkml@xxxxxxxxxxx>
[ Upstream commit cd0883055b04586770dab43c64159348bf480a3e ]
Aokzoe A2 Pro is an older device that the oxpec driver is missing the
quirk for. It has the same behavior as the AOKZOE A1 devices. Add a
quirk for it to the oxpec driver.
Signed-off-by: Antheas Kapenekakis <lkml@xxxxxxxxxxx>
Link: https://patch.msgid.link/20260223183004.2696892-5-lkml@xxxxxxxxxxx
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
LLM Generated explanations, may be completely bogus:
This is important context. The driver was originally `drivers/hwmon/oxp-
sensors.c` (added in late 2022, so present in 6.1+ stable trees) and was
moved/renamed to `drivers/platform/x86/oxpec.c` in April 2025. This
means:
- **For stable trees based on kernels before the move (6.1.y, 6.6.y,
6.12.y likely)**: The file is at `drivers/hwmon/oxp-sensors.c`, and
this patch won't apply cleanly. A backport would need to target the
old location.
- **For newer stable trees (6.15.y+)**: The patch would apply cleanly.
The driver rename is a significant obstacle for backporting to older
stable trees, though the fix itself is trivial.
### Verification:
- Confirmed the driver was originally `drivers/hwmon/oxp-sensors.c`
(added Nov 2022, present since ~v6.2)
- Confirmed it was moved to `drivers/platform/x86/oxpec.c` in commit
`3012bb39001c` (April 2025)
- Confirmed the change is a pure DMI table entry addition using existing
`aok_zoe_a1` enum value
- Confirmed `aok_zoe_a1` is already used by two other AOKZOE entries (A1
AR07, A1 Pro)
- Confirmed the patch was reviewed by Ilpo Järvinen (platform/x86
maintainer)
- The driver's presence in older stable trees is under a different
filename, meaning this patch would need adjustment for backporting to
older stable branches
### Summary
This is a textbook hardware quirk addition — a trivial DMI table entry
that enables an existing driver to support a specific device (Aokzoe A2
Pro). It has zero risk of regression, fixes a real hardware support gap
for actual users, and is reviewed by the subsystem maintainer. The only
caveat is that it would need path adjustment for older stable trees
where the driver is still at `drivers/hwmon/oxp-sensors.c`, but that's a
mechanical change. This meets all stable kernel criteria.
**YES**
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 623d9a452c469..158c545d4efbb 100644
--- a/drivers/platform/x86/oxpec.c
+++ b/drivers/platform/x86/oxpec.c
@@ -114,6 +114,13 @@ static const struct dmi_system_id dmi_table[] = {
},
.driver_data = (void *)aok_zoe_a1,
},
+ {
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "AOKZOE"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "AOKZOE A2 Pro"),
+ },
+ .driver_data = (void *)aok_zoe_a1,
+ },
{
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "AOKZOE"),
--
2.51.0