Skip to content
Snippets Groups Projects
Commit 018b812b authored by Mario Limonciello's avatar Mario Limonciello
Browse files

pinctrl: amd: Clear `Less2secSts` and `Less10secSts` for GPIO0


Systems that don't program GPIO0 through _AEI may still control
the power button via this GPIO.  When the GPIO master controller
register has bit 15 configured for `EnWinBlueBtn` this will cause
GPIO 0 to behave differently. If the user presses the button for
less than 2 seconds or less than 10 seconds then it is expected
that interrupt status must be cleared by the GPIO driver.

Add a notification chain for the ACPI power button so that
when a power button is pressed it will explicitly clear these
bits.

Reported-by: default avatarLuca Pigliacampo <lucapgl2001@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217833
Fixes: a855724d ("pinctrl: amd: Fix mistake in handling clearing pins at startup")
Link: https://www.amd.com/content/dam/amd/en/documents/archived-tech-docs/programmer-references/55072_AMD_Family_15h_Models_70h-7Fh_BKDG.pdf

 p948
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
parent c8ac293c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment