diff options
author | Kornel Dulęba | 2023-03-20 09:32:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-04-06 12:10:53 +0200 |
commit | d9c63daa576b24486c66024414f63d224897c796 (patch) | |
tree | 0dee48e8fc808a08d486f08682bffeabc3ac1966 /lib/lzo | |
parent | 0e7ac17634d2254e0fc65307a5f430e4f1fdb7e9 (diff) |
pinctrl: amd: Disable and mask interrupts on resume
commit b26cd9325be4c1fcd331b77f10acb627c560d4d7 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/lzo')
0 files changed, 0 insertions, 0 deletions