# Re: \[PATCH v2\] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt

- From: Linus Walleij \<hidden\>
- Date: 2021-01-25 13:15:28 
- List: linux-gpio
- Page: https://ratatoskr.run/linux-gpio/2021/01/6246145
- Thread: https://ratatoskr.run/linux-mediatek/2021/01/6246145/t.md

```text
On Mon, Jan 25, 2021 at 4:19 AM Hailong Fan [ref] wrote:

> When flipping the polarity will be generated interrupt under certain
> circumstances, but GPIO external signal has not changed.
> Then, mask the interrupt before polarity setting, and clear the
> unexpected interrupt after trigger type setting completed.
>
> Signed-off-by: Hailong Fan <redacted>
> Reviewed-by: Nicolas Boichat <redacted>

Patch applied for fixes.

Yours,
Linus Walleij
```
