Skip to content

Commit 2b0e672

Browse files
govovegregkh
authored andcommitted
gpio: fix aspeed_gpio unmask irq
commit f241632 upstream. The unmask function disables all interrupts in a bank when unmasking an interrupt. Only disable the given interrupt. Cc: stable@vger.kernel.org Signed-off-by: Govert Overgaauw <govert.overgaauw@prodrive-technologies.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 31d04ca commit 2b0e672

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpio-aspeed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void aspeed_gpio_irq_set_mask(struct irq_data *d, bool set)
256256
if (set)
257257
reg |= bit;
258258
else
259-
reg &= bit;
259+
reg &= ~bit;
260260
iowrite32(reg, addr);
261261

262262
spin_unlock_irqrestore(&gpio->lock, flags);

0 commit comments

Comments
 (0)