All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: imu: bmi270: Match ACPI ID found on newer GPD firmware
@ 2025-07-30 12:56 ` Cryolitia PukNgae via B4 Relay
  0 siblings, 0 replies; 14+ messages in thread
From: Cryolitia PukNgae @ 2025-07-30 12:56 UTC (permalink / raw)
  To: Alex Lanzano, Jonathan Cameron, Lars-Peter Clausen, David Lechner,
	Nuno Sá, Andy Shevchenko
  Cc: linux-iio, linux-kernel, Yao Zi, WangYuli, Jun Zhan,
	Cryolitia PukNgae

Some GPD devices ship a buggy firmware that describes on-device BMI260
with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40,
let's match the correct ID to detect the device. The buggy ID "BMI0160"
is kept as well to maintain compatibility with older firmwares.

Signed-off-by: Cryolitia PukNgae <liziyao@uniontech.com>
---
Some GPD devices ship a buggy firmware that describes on-device BMI260
with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40[1],
let's match the correct ID to detect the device. The buggy ID "BMI0160"
is kept as well to maintain compatibility with older firmwares.

Link: http://download.softwincn.com/WIN%20Max%202024/Max2-7840-BIOS-V0.41.zip

[1]. See the update nodes in the archive file above
---
 drivers/iio/imu/bmi270/bmi270_i2c.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/imu/bmi270/bmi270_i2c.c b/drivers/iio/imu/bmi270/bmi270_i2c.c
index c77839b03a969f6f149c025a0305c4b9b8ac6571..b909a421ad0176ee414f2f96ff09db2297586ded 100644
--- a/drivers/iio/imu/bmi270/bmi270_i2c.c
+++ b/drivers/iio/imu/bmi270/bmi270_i2c.c
@@ -41,6 +41,8 @@ static const struct i2c_device_id bmi270_i2c_id[] = {
 static const struct acpi_device_id bmi270_acpi_match[] = {
 	/* GPD Win Mini, Aya Neo AIR Pro, OXP Mini Pro, etc. */
 	{ "BMI0160",  (kernel_ulong_t)&bmi260_chip_info },
+	/* GPD Win Max 2 2023(sincice BIOS v0.40), etc. */
+	{ "BMI0260",  (kernel_ulong_t)&bmi260_chip_info },
 	{ }
 };
 

---
base-commit: 0db240bc077fd16cc16bcecfd7f4645bc474aa7e
change-id: 20250206-bmi270-gpd-acpi-de4d12bce567

Best regards,
-- 
Cryolitia PukNgae <liziyao@uniontech.com>


^ permalink raw reply related	[flat|nested] 14+ messages in thread
* [PATCH] iio: imu: bmi270: Match ACPI ID found on newer GPD firmware
@ 2025-02-06  7:09 ` Cryolitia PukNgae via B4 Relay
  0 siblings, 0 replies; 14+ messages in thread
From: Cryolitia PukNgae @ 2025-02-06  7:09 UTC (permalink / raw)
  To: Alex Lanzano, Jonathan Cameron, Lars-Peter Clausen
  Cc: linux-iio, linux-kernel, Yao Zi, Cryolitia PukNgae

Some GPD devices ship a buggy firmware that describes on-device BMI260 with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40[1], let's match the correct ID to detect the device. The buggy ID "BMI0160" is kept as well to maintain compatibility with older firmwares.

---
Some GPD devices ship a buggy firmware that describes on-device BMI260 with ACPI ID "BMI0160". Since this is fixed in BIOS update v0.40[1], let's match the correct ID to detect the device. The buggy ID "BMI0160" is kept as well to maintain compatibility with older firmwares.

Link: http://download.softwincn.com/WIN%20Max%202024/Max2-7840-BIOS-V0.41.zip

[1]. See the update nodes in the archive file above

Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
---
 drivers/iio/imu/bmi270/bmi270_i2c.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/imu/bmi270/bmi270_i2c.c b/drivers/iio/imu/bmi270/bmi270_i2c.c
index 44699ab589097eaa0eec5f2172245496ed031185..f66ae01e301df24f1e563e059da8cc531fc173eb 100644
--- a/drivers/iio/imu/bmi270/bmi270_i2c.c
+++ b/drivers/iio/imu/bmi270/bmi270_i2c.c
@@ -40,6 +40,8 @@ static const struct i2c_device_id bmi270_i2c_id[] = {
 static const struct acpi_device_id bmi270_acpi_match[] = {
 	/* GPD Win Mini, Aya Neo AIR Pro, OXP Mini Pro, etc. */
 	{ "BMI0160",  (kernel_ulong_t)&bmi260_chip_info },
+	/* GPD Win Max 2 2023(sincice BIOS v0.40), etc. */
+	{ "BMI0260",  (kernel_ulong_t)&bmi260_chip_info },
 	{ }
 };
 

---
base-commit: ffd294d346d185b70e28b1a28abe367bbfe53c04
change-id: 20250206-bmi270-gpd-acpi-de4d12bce567

Best regards,
-- 
Cryolitia PukNgae <Cryolitia@gmail.com>


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

end of thread, other threads:[~2025-08-11 13:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30 12:56 [PATCH] iio: imu: bmi270: Match ACPI ID found on newer GPD firmware Cryolitia PukNgae
2025-07-30 12:56 ` Cryolitia PukNgae via B4 Relay
2025-07-30 17:46 ` David Lechner
2025-07-30 20:57 ` Andy Shevchenko
2025-07-30 21:11   ` Andy Shevchenko
2025-07-31  3:05   ` Cryolitia PukNgae
2025-07-31  9:46     ` Andy Shevchenko
2025-08-11 13:08 ` Andy Shevchenko
2025-08-11 13:10   ` Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2025-02-06  7:09 Cryolitia PukNgae
2025-02-06  7:09 ` Cryolitia PukNgae via B4 Relay
2025-02-07 17:12 ` Alex Lanzano
2025-02-08 13:30 ` Jonathan Cameron
2025-07-30 10:16   ` Cryolitia PukNgae

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.