diff options
author | Govert Overgaauw <govert.overgaauw@prodrive-technologies.com> | 2018-04-06 14:41:35 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-04-26 11:13:04 +0200 |
commit | f241632fd087d3d9fbd5450f4d8c8604badd8348 (patch) | |
tree | 670a2577106080c5b6ebf088b5c80750030f9acc /drivers/gpio/gpio-aspeed.c | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) | |
download | linux-f241632fd087d3d9fbd5450f4d8c8604badd8348.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpio/gpio-aspeed.c')
-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) if (set) reg |= bit; else - reg &= bit; + reg &= ~bit; iowrite32(reg, addr); spin_unlock_irqrestore(&gpio->lock, flags); |