]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt
authorHailong Fan <hailong.fan@mediatek.com>
Mon, 25 Jan 2021 04:17:53 +0000 (12:17 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2021 04:52:01 +0000 (05:52 +0100)
commite1ddaf534e17b9f56dd4381f1b668764201c33e2
tree834c9bf2dbfc93ab103fc378f6cc56a28c43771e
parentdaedada97dd20fe458ed1964658e027d151eff01
pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt

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.

Remove mtk_eint_flip_edge: because mtk_eint_unmask already calls it.

Signed-off-by: Hailong Fan <hailong.fan@mediatek.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Link: https://lore.kernel.org/r/20210125041753.2214-1-hailong.fan@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/mtk-eint.c