Skip to content
Commit d9c63daa authored by Kornel Dulęba's avatar Kornel Dulęba Committed by Greg Kroah-Hartman
Browse files

pinctrl: amd: Disable and mask interrupts on resume



commit b26cd932 upstream.

This fixes a similar problem to the one observed in:
commit 4e5a04be ("pinctrl: amd: disable and mask interrupts on probe").

On some systems, during suspend/resume cycle firmware leaves
an interrupt enabled on a pin that is not used by the kernel.
This confuses the AMD pinctrl driver and causes spurious interrupts.

The driver already has logic to detect if a pin is used by the kernel.
Leverage it to re-initialize interrupt fields of a pin only if it's not
used by us.

Cc: stable@vger.kernel.org
Fixes: dbad75dd ("pinctrl: add AMD GPIO driver support.")
Signed-off-by: default avatarKornel Dulęba <korneld@chromium.org>
Link: https://lore.kernel.org/r/20230320093259.845178-1-korneld@chromium.org


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e7ac176
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment