Skip to contentSkip to conversation

iio: accel: mxc4005: new ACPI ID for the MXC6655 accelerometer

PATCH In review Nikita Mikhailevich 2 participants 2 messages Feb 1, 2024 – Feb 4, 2024 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: mxc4005: new ACPI ID for the MXC6655 accelerometer

New ID was introduced by Chuwi on Minibook X 2023.

---
 drivers/iio/accel/mxc4005.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/mxc4005.c +1 -0
index 82e8d0b39..09764ef8b 100644
@@ -472,6 +472,7 @@ static int mxc4005_probe(struct i2c_client *client)
 static const struct acpi_device_id mxc4005_acpi_match[] = {
 	{"MXC4005",	0},
 	{"MXC6655",	0},
+	{"MDA6655",	0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, mxc4005_acpi_match);

--
2.43.0

maintainer
#1 lore raw
Quoted 1 line · On Thu, 1 Feb 2024 16:18:48 +0100 Nikita Mikhailevich <[email protected]>…

New ID was introduced by Chuwi on Minibook X 2023.

So interestingly MDA is a valid PNP ID. But an old one from 1997 for Media4 Inc.

Let's hope they never used that device number in a way that will bite us.

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to play with it.

Note that if anyone has a path to Chuwi to educate them on how to do ACPI ids correctly then feel free to pass it on!

The MXC ones are also invalid btw - in that case there is no such PNP ID unless it's been very recently granted which seems unlikely.

Jonathan

Quoted 21 lines
---
 drivers/iio/accel/mxc4005.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/mxc4005.c +1 -1
index 82e8d0b39..09764ef8b 100644
@@ -472,6 +472,7 @@ static int mxc4005_probe(struct i2c_client *client)
 static const struct acpi_device_id mxc4005_acpi_match[] = {
 	{"MXC4005",	0},
 	{"MXC6655",	0},
+	{"MDA6655",	0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, mxc4005_acpi_match);
--

2.43.0