Skip to content

Commit f785ffb

Browse files
Neo Houbrgl
authored andcommitted
gpio: sprd: Fix incorrect irq type setting for the async EIC
When setting async EIC as IRQ_TYPE_EDGE_BOTH type, we missed to set the SPRD_EIC_ASYNC_INTMODE register to 0, which means detecting edge signals. Thus this patch fixes the issue. Fixes: 25518e0 ("gpio: Add Spreadtrum EIC driver support") Cc: <stable@vger.kernel.org> Signed-off-by: Neo Hou <neo.hou@unisoc.com> Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
1 parent 09d158d commit f785ffb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-eic-sprd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ static int sprd_eic_irq_set_type(struct irq_data *data, unsigned int flow_type)
379379
irq_set_handler_locked(data, handle_edge_irq);
380380
break;
381381
case IRQ_TYPE_EDGE_BOTH:
382+
sprd_eic_update(chip, offset, SPRD_EIC_ASYNC_INTMODE, 0);
382383
sprd_eic_update(chip, offset, SPRD_EIC_ASYNC_INTBOTH, 1);
383384
irq_set_handler_locked(data, handle_edge_irq);
384385
break;

0 commit comments

Comments
 (0)