This is a note to let you know that I've just added the patch titled gpio: pcie-idio-24: Fix irq mask when masking to the 5.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: gpio-pcie-idio-24-fix-irq-mask-when-masking.patch and it can be found in the queue-5.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From d8f270efeac850c569c305dc0baa42ac3d607988 Mon Sep 17 00:00:00 2001 From: Arnaud de Turckheim <quarium@xxxxxxxxx> Date: Wed, 4 Nov 2020 16:24:53 +0100 Subject: gpio: pcie-idio-24: Fix irq mask when masking From: Arnaud de Turckheim <quarium@xxxxxxxxx> commit d8f270efeac850c569c305dc0baa42ac3d607988 upstream. 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@xxxxxxxxxxxxxxx Signed-off-by: Arnaud de Turckheim <quarium@xxxxxxxxx> Reviewed-by: William Breathitt Gray <vilhelm.gray@xxxxxxxxx> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpio/gpio-pcie-idio-24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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_ 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) { Patches currently in stable-queue which might be from quarium@xxxxxxxxx are queue-5.9/gpio-pcie-idio-24-fix-irq-enable-register-value.patch queue-5.9/gpio-pcie-idio-24-enable-pex8311-interrupts.patch queue-5.9/gpio-pcie-idio-24-fix-irq-mask-when-masking.patch