Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3874465pxb; Tue, 17 Nov 2020 05:58:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpGWjvb88m1VuXZToen/5NbPGXcPzGb5EG0ORKIgp1oGVPr9tTO/mmAXxLOszSd/rygU4B X-Received: by 2002:a05:6402:1155:: with SMTP id g21mr20780159edw.53.1605621531193; Tue, 17 Nov 2020 05:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621531; cv=none; d=google.com; s=arc-20160816; b=KVbOkIaLvov8Kfs01thSBexcf7kMAhH1W1ZKG54D5a/XjL9PDe8L736Os+auSRTmWg ct6wlfgUq0pmdKXHU4IUeAROrbrSCvyfvYGOAHFaVYi3gsBPryUSPukHURRQS8ZM4ANa onvIGNxMLXumwDMwaUajc941kQ0tw1pAR2A0LjPukgrap8WAcGkMNA3B4rL4B3s3rc6+ WDUOMdX2rtfoZ2BBlvOSxU8JDh0aUYaR0o+e83z5MIG1mjb85ZcQPetw46yyhulW3bnc K7gj7o+RMZ7mTEYMcy8BjfpiMJ9e9e1vNmiP0NfldtnqhIdMqUq89Eo3SfcCBysWgbao vTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xaQ2keZTUWYb97vZl8PyHPgC7elv35YK6lE5jBPfKvc=; b=XSzgcGz0lALe6dozHtpihAMRoNIQAXJnzfuzVnuqU8JMQ0BBzZhHem2lIgGEW1L6kU 5yQAn+8y9O0xTJJRHLWQmCXvWg8s1Drh5xQpVqYGEog7uLkhiNJRLKeTCXFLgnHgRA4c QTsYMqi09FyKzuXJrY8oUMQtAs3+nA5C82SuVYa1sP/x7lZXsXZyUj8/TsQu85Ee6n6W ljwMrcnVfyZmpNS7qfKUbBK7VBCqTlX4ApoZdIgFzsPfJmH21Y63P6JHNuu6M0Exh5jt B/XW/pwtGK+qoGqtwulPn802y7X8/veLumrOPtZ6AvkcMZCFrzM0Yfa9DeYTG/Hnwg+H B9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lIgpkKAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca10si4428438ejb.587.2020.11.17.05.58.28; Tue, 17 Nov 2020 05:58:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lIgpkKAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730725AbgKQN46 (ORCPT + 99 others); Tue, 17 Nov 2020 08:56:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:56316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731127AbgKQNWL (ORCPT ); Tue, 17 Nov 2020 08:22:11 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6940824631; Tue, 17 Nov 2020 13:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619331; bh=4xqtMbNtomAV5AV4pXEjKfbYcKyIPsbf3GnbHYbKyOA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lIgpkKAbfDCMcMMeN0QEVWSUDstjXAJWrbE8s10dsFw2zl817/+nJjKrQ2ELKDbFM 2IPBWo7HIeSjyFfSm4GDGYLKggSbUbqLCwSwwQDOVy9SsdNh0exvZ1TlNxtJ/BxX46 FkOr2ajEGkdltNT8dNX0KkglwdyK3wGuBGJtCLIw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnaud de Turckheim , William Breathitt Gray , Bartosz Golaszewski Subject: [PATCH 4.19 077/101] gpio: pcie-idio-24: Fix irq mask when masking Date: Tue, 17 Nov 2020 14:05:44 +0100 Message-Id: <20201117122116.872079729@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaud de Turckheim 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@vger.kernel.org Signed-off-by: Arnaud de Turckheim Reviewed-by: William Breathitt Gray Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- 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 @@ -365,7 +365,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) {