Skip to content

Commit 6e564f2

Browse files
aborzeszgregkh
authored andcommitted
gpio: graniterapids: Fix GPIO Ack functionality
commit 0bb18e3 upstream. Interrupt status (GPI_IS) register is cleared by writing 1 to it, not 0. Cc: [email protected] Signed-off-by: Alan Borzeszkowski <[email protected]> Signed-off-by: Mika Westerberg <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7fa8013 commit 6e564f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-graniterapids.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void gnr_gpio_irq_ack(struct irq_data *d)
166166
guard(raw_spinlock_irqsave)(&priv->lock);
167167

168168
reg = readl(addr);
169-
reg &= ~BIT(bit_idx);
169+
reg |= BIT(bit_idx);
170170
writel(reg, addr);
171171
}
172172

0 commit comments

Comments
 (0)