Skip to content
Commit 16b70a75 authored by Wenhua Lin's avatar Wenhua Lin Committed by Greg Kroah-Hartman
Browse files

gpio: eic-sprd: Clear interrupt after set the interrupt type

[ Upstream commit 84aef4ed ]

The raw interrupt status of eic maybe set before the interrupt is enabled,
since the eic interrupt has a latch function, which would trigger the
interrupt event once enabled it from user side. To solve this problem,
interrupts generated before setting the interrupt trigger type are ignored.

Fixes: 25518e02

 ("gpio: Add Spreadtrum EIC driver support")
Acked-by: default avatarChunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: default avatarWenhua Lin <Wenhua.Lin@unisoc.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a1703748
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment