amdgpio(4): restore pin configuration on resume
authormlarkin <mlarkin@openbsd.org>
Mon, 27 Jun 2022 07:55:28 +0000 (07:55 +0000)
committermlarkin <mlarkin@openbsd.org>
Mon, 27 Jun 2022 07:55:28 +0000 (07:55 +0000)
commita29e15c6de98339d7c7acea3e97c5809105a4644
treecc639b2f0f819153f15dd7c45993ea1a6f765137
parent317fc6b77d946253ec00f0b536d253fb4781a3de
amdgpio(4): restore pin configuration on resume

Save/restore the pin configuration on suspend/resume for amdgpio(4).
This fixes missing interrupts after resume for trackpads on some
machines, including the ROG Zephyrus 14 and the HP DevOne (and probably
others).

Code based on pchgpio(4).

ok deraadt, kettenis
sys/dev/acpi/amdgpio.c