Wenhua Lin 84aef4ed59 gpio: eic-sprd: Clear interrupt after set the interrupt type
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: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support")
Acked-by: Chunyan Zhang <zhang.lyra@gmail.com>
Signed-off-by: Wenhua Lin <Wenhua.Lin@unisoc.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2024-01-22 11:38:08 +01:00
..
2021-04-14 10:19:22 +01:00
2023-10-13 08:39:30 +02:00
2021-05-05 16:07:41 +02:00
2022-10-26 14:52:01 +02:00
2023-12-18 13:43:06 +01:00
2022-10-08 09:46:29 -07:00
2023-11-09 13:47:52 -08:00
2023-10-04 11:37:25 +02:00
2023-08-21 10:39:58 +02:00
2022-06-21 18:01:11 +03:00
2023-03-06 12:33:02 +02:00
2023-10-31 17:21:54 -10:00
2022-01-14 18:50:52 -05:00
2023-08-29 10:21:56 -07:00
2023-03-06 12:33:02 +02:00
2023-03-06 12:33:02 +02:00