Skip to content

Commit

Permalink
gpio: fix aspeed_gpio unmask irq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Govert Overgaauw authored and Linus Walleij committed Apr 26, 2018
1 parent 60cc43f commit f241632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static void aspeed_gpio_irq_set_mask(struct irq_data *d, bool set)
if (set)
reg |= bit;
else
reg &= bit;
reg &= ~bit;
iowrite32(reg, addr);

spin_unlock_irqrestore(&gpio->lock, flags);
Expand Down

0 comments on commit f241632

Please sign in to comment.