Kornel Dulęba b26cd9325b pinctrl: amd: Disable and mask interrupts on resume
This fixes a similar problem to the one observed in:
commit 4e5a04be88fe ("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: dbad75dd1f25 ("pinctrl: add AMD GPIO driver support.")
Signed-off-by: Kornel Dulęba <korneld@chromium.org>
Link: https://lore.kernel.org/r/20230320093259.845178-1-korneld@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-03-28 15:20:18 +02:00
..
2022-10-26 09:58:29 +02:00
2023-02-22 11:05:56 -08:00
2023-02-22 11:05:56 -08:00
2023-02-27 10:04:49 -08:00
2023-02-22 11:05:56 -08:00
2022-10-24 17:06:47 +03:00
2023-02-22 11:05:56 -08:00
2023-01-30 15:55:30 +01:00
2022-10-24 17:06:48 +03:00
2022-10-24 17:06:48 +03:00
2022-10-26 09:58:29 +02:00
2023-02-22 11:05:56 -08:00
2022-10-26 09:58:29 +02:00
2022-10-24 17:06:48 +03:00
2022-10-24 17:06:48 +03:00