summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-aspeed.c
diff options
context:
space:
mode:
authorGovert Overgaauw <govert.overgaauw@prodrive-technologies.com>2018-04-06 15:41:35 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-04-26 12:13:04 +0300
commitf241632fd087d3d9fbd5450f4d8c8604badd8348 (patch)
tree670a2577106080c5b6ebf088b5c80750030f9acc /drivers/gpio/gpio-aspeed.c
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
downloadlinux-f241632fd087d3d9fbd5450f4d8c8604badd8348.tar.xz
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.c2
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);