summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-pcie-idio-24.c
diff options
context:
space:
mode:
authorArnaud de Turckheim <quarium@gmail.com>2020-11-04 18:24:53 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-11-06 17:18:25 +0300
commitd8f270efeac850c569c305dc0baa42ac3d607988 (patch)
tree0b83640157d1f96947c474fa4cb875d64c792116 /drivers/gpio/gpio-pcie-idio-24.c
parent1f5eb8b17f02d216703ee56e4c3115f592b060fb (diff)
downloadlinux-d8f270efeac850c569c305dc0baa42ac3d607988.tar.xz
gpio: pcie-idio-24: Fix irq mask when masking
Fix the bitwise operation to remove only the corresponding bit from the mask. Fixes: 585562046628 ("gpio: Add GPIO support for the ACCES PCIe-IDIO-24 family") Cc: stable@vger.kernel.org Signed-off-by: Arnaud de Turckheim <quarium@gmail.com> Reviewed-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-pcie-idio-24.c')
-rw-r--r--drivers/gpio/gpio-pcie-idio-24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pcie-idio-24.c b/drivers/gpio/gpio-pcie-idio-24.c
index a68941d19ac6..5ea517416366 100644
--- a/drivers/gpio/gpio-pcie-idio-24.c
+++ b/drivers/gpio/gpio-pcie-idio-24.c
@@ -339,7 +339,7 @@ static void idio_24_irq_mask(struct irq_data *data)
raw_spin_lock_irqsave(&idio24gpio->lock, flags);
- idio24gpio->irq_mask &= BIT(bit_offset);
+ idio24gpio->irq_mask &= ~BIT(bit_offset);
new_irq_mask = idio24gpio->irq_mask >> bank_offset;
if (!new_irq_mask) {