Thx for reviewTheoretically yes, practically no because the Windows WMI-ACPI driver does accept oversized buffers :(.
On 7/30/25 19:33, Armin Wolf wrote:
Sorry if this is a stupid question, but isn't any size other than 32 a sign of a firmware bug?+
+ if (obj->type != ACPI_TYPE_BUFFER) {
+ dev_err(&wdev->dev, "Bad response type %u\n", obj->type);
+ return;
+ }
+
+ if (obj->buffer.length != 32) {
Please also accept oversized buffers.
Alright, in this case you can ignore my comment.Personally I prefer to think about it as "some value encoded in payload" rather than "is it AI button release payload?", because in the latter case alternatives are more unclear. It's just a preference, btw, would fix if you insist.+
+ /* AI key quirk */
+ if (entry->keycode == KEY_ASSISTANT) {
+ value = !(payload & AI_KEY_VALUE_MASK);
I would rather check the payload for 0x00011901 here.
--
Gladyshev Ilya