diff options
author | Govert Overgaauw <govert.overgaauw@prodrive-technologies.com> | 2018-04-06 08:41:35 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-04-26 05:13:04 -0400 |
commit | f241632fd087d3d9fbd5450f4d8c8604badd8348 (patch) | |
tree | 670a2577106080c5b6ebf088b5c80750030f9acc | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) |
gpio: fix aspeed_gpio unmask irq
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>
-rw-r--r-- | drivers/gpio/gpio-aspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 77e485557498..6f693b7d5220 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c | |||
@@ -384,7 +384,7 @@ static void aspeed_gpio_irq_set_mask(struct irq_data *d, bool set) | |||
384 | if (set) | 384 | if (set) |
385 | reg |= bit; | 385 | reg |= bit; |
386 | else | 386 | else |
387 | reg &= bit; | 387 | reg &= ~bit; |
388 | iowrite32(reg, addr); | 388 | iowrite32(reg, addr); |
389 | 389 | ||
390 | spin_unlock_irqrestore(&gpio->lock, flags); | 390 | spin_unlock_irqrestore(&gpio->lock, flags); |