gpiolib: acpi: Add quirk for Dell Precision 7780
Subsystems (5)
PATCH 1/1 gpiolib: acpi: Add quirk for Dell Precision 7780
Dell Precision 7780 often wakes up on its own from suspend. Sometimes wake up happens immediately (i. e. within 7 seconds), sometimes it happens after, say, 30 minutes.
--- drivers/gpio/gpiolib-acpi-quirks.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +22 -0
@@ -370,6 +370,28 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { .ignore_wake = "ASCP1A00:00@8", }, }, + { + /* + * Spurious wakeups, likely from touchpad controller + * Dell Precision 7780 + * Found in BIOS 1.24.1 + * + * Found in touchpad firmware, installed by Dell Touchpad Firmware Update Utility version 1160.4196.9, A01 + * ( Dell-Touchpad-Firmware-Update-Utility_VYGNN_WIN64_1160.4196.9_A00.EXE ), + * released on 11 Jul 2024 + * + * https://lore.kernel.org/linux-i2c/[email protected]/ + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_FAMILY, "Precision"), + DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7780"), + DMI_MATCH(DMI_BOARD_NAME, "0C6JVW"), + }, + .driver_data = &(struct acpi_gpiolib_dmi_quirk) { + .ignore_wake = "VEN_0488:00@355", + }, + }, {} /* Terminating entry */ };
base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449 (v6.18)
Signature · 1 line
2.47.3
Bartosz Golaszewski
maintainerHi!
Thanks for the patch.
Quoted 10 lines · Askar Safin
Dell Precision 7780 often wakes up on its own from suspend. Sometimes wake up happens immediately (i. e. within 7 seconds), sometimes it happens after, say, 30 minutes.
Fixes 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable")Reported-by Askar Safin <[email protected]>Cc <[email protected]>Tested-by Askar Safin <[email protected]>Signed-off-by Askar Safin <[email protected]>
Please don't add Tested-by, Reported-by, etc. if you're the author of the. Tested-by should be added by someone else who tested your patch, it doesn't make much sense otherwise because I sure do expect you test your changes if you have access to the right hardware. :)
Quoted 27 lines
--- drivers/gpio/gpiolib-acpi-quirks.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/gpio/gpiolib-acpi-quirks.c +15
-0@@ -370,6 +370,28 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { .ignore_wake = "ASCP1A00:00@8", }, }, + { +/* +* Spurious wakeups, likely from touchpad controller +* Dell Precision 7780 +* Found in BIOS 1.24.1 +* +* Found in touchpad firmware, installed by Dell Touchpad Firmware Update Utility version 1160.4196.9, A01 +* ( Dell-Touchpad-Firmware-Update-Utility_VYGNN_WIN64_1160.4196.9_A00.EXE ), +* released on 11 Jul 2024 +* +* https://lore.kernel.org/linux-i2c/[email protected]/ +*/ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_FAMILY, "Precision"),
drivers/gpio/gpiolib-acpi-quirks.c static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { · line 397
Quoted 10 lines
drivers/gpio/gpiolib-acpi-quirks.c +7
-0+ DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7780"), + DMI_MATCH(DMI_BOARD_NAME, "0C6JVW"), + }, + .driver_data = &(struct acpi_gpiolib_dmi_quirk) { + .ignore_wake = "VEN_0488:00@355", + }, + }, {}/* Terminating entry */ };
Looks good to me, but I'll give GPIO ACPI maintainers time to chime in.
Bart
Quoted 3 lines · Askar Safin
Dell Precision 7780 often wakes up on its own from suspend. Sometimes wake up happens immediately (i. e. within 7 seconds), sometimes it happens after, say, 30 minutes.
Thanks for the patch, it looks quite good. See my comments below.
...
Quoted 2 lines
Reported-by Askar Safin <[email protected]>Tested-by Askar Safin <[email protected]>
I believe it's the same person in both cases as the author of the patch. As Bart said, just drop these tags, it makes little sense to have them.
...
drivers/gpio/gpiolib-acpi-quirks.c static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { · line 377
Quoted 4 lines
drivers/gpio/gpiolib-acpi-quirks.c +4
-0+/* +* Spurious wakeups, likely from touchpad controller +* Dell Precision 7780 +* Found in BIOS 1.24.1
Not sure if we also want BIOS version, probably it's more important than Board Name, but okay, we may not know without trying if any other users need the same quirk or will suffer from it (if BIOS version is different).
Quoted 6 lines
drivers/gpio/gpiolib-acpi-quirks.c +6
-0+* Found in touchpad firmware, installed by Dell Touchpad Firmware Update Utility version 1160.4196.9, A01 +* ( Dell-Touchpad-Firmware-Update-Utility_VYGNN_WIN64_1160.4196.9_A00.EXE ), +* released on 11 Jul 2024 +* +* https://lore.kernel.org/linux-i2c/[email protected]/ +*/
drivers/gpio/gpiolib-acpi-quirks.c static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { · line 394
Quoted 10 lines
drivers/gpio/gpiolib-acpi-quirks.c +10
-0+ .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), +DMI_MATCH (DMI_PRODUCT_FAMILY ,"Precision" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"Precision 7780" ), + DMI_MATCH(DMI_BOARD_NAME, "0C6JVW"), + }, + .driver_data = &(struct acpi_gpiolib_dmi_quirk ) { + .ignore_wake ="VEN_0488:00@355" , + }, + },
With tags removed, feel free to add my
Note, it's your responsibility to carry the given tags as long as there were no significant changes in the patch. That said, I expect to see a v2 without your 2 tags and with mine that I gave above. No code changes for now.
Signature · 2 lines
With Best Regards, Andy Shevchenko