# Re: \[PATCH v7 2/2\] pinctrl: amd: Fix wakeups when IRQ is shared with SCI

- From: Linus Walleij \<hidden\>
- Date: 2021-11-09 00:38:50 
- List: linux-gpio
- Page: https://ratatoskr.run/linux-gpio/2021/11/1566043
- Thread: https://ratatoskr.run/linux-gpio/2021/11/1558992/t.md

```text
On Mon, Nov 1, 2021 at 2:49 AM Mario Limonciello
[ref] wrote:

> On some Lenovo AMD Gen2 platforms the IRQ for the SCI and pinctrl drivers
> are shared.  Due to how the s2idle loop handling works, this case needs
> an extra explicit check whether the interrupt was caused by SCI or by
> the GPIO controller.
>
> To fix this rework the existing IRQ handler function to function as a
> checker and an IRQ handler depending on the calling arguments.
>
> BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1738
> Reported-by: Joerie de Gram <redacted>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>

This v7 patch applied for fixes.

Sorry for the delay, I was busy with the merge window.
Once the merge window concludes I will rebase this on
-rc1 and send upstream.

Yours,
Linus Walleij
```
