From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88B15C32751 for ; Wed, 31 Jul 2019 09:46:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51D12208C3 for ; Wed, 31 Jul 2019 09:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564566401; bh=q3KpGX/XUNJA3eJAkxkFOo+2OaZ5W4T7lP3JIMP+b1w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=N9cW38AJlLscCQAtfW+TOwOM8B3ZLrW0iyIbzBVcetPymVmfDVGMj09Wl23lTNPVB Zu4JF1M4WTINdYE7lZSFxyvzw0He0OhZrpuFxSBSBgqFNu0Z7L+1GTHdTgsCi0oxwf 6Xpkj3LK9hoPiWzvwuxsFjtg0sSLJFN6oJD/3bPY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbfGaJqk (ORCPT ); Wed, 31 Jul 2019 05:46:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:38816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfGaJqk (ORCPT ); Wed, 31 Jul 2019 05:46:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 8FD2820665; Wed, 31 Jul 2019 09:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564566400; bh=q3KpGX/XUNJA3eJAkxkFOo+2OaZ5W4T7lP3JIMP+b1w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vGS4Ot1HRygpgYeZk+zUx1H25Cu5geTg4KtNhz3H5JdNSUlaB6jgh2jpv8Rk0YUri IAxcFXXSrNoleky+OFIew1LIk6id0ibMld78fgcyi0QTeJJ2NnsLtpscJ1CDA8NFCL UBtIp5KVWzk8Lik1BBzARAzmUMBYSq5wUOHTVFWY= Date: Wed, 31 Jul 2019 11:46:37 +0200 From: Greg KH To: Amit Pundir Cc: Stable , Christian Lamparter , Michael Ellerman Subject: Re: [PATCH for-4.19.y 3/3] powerpc/4xx/uic: clear pending interrupt after irq type/pol change Message-ID: <20190731094637.GG18269@kroah.com> References: <1564517799-16880-1-git-send-email-amit.pundir@linaro.org> <1564517799-16880-3-git-send-email-amit.pundir@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1564517799-16880-3-git-send-email-amit.pundir@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Jul 31, 2019 at 01:46:39AM +0530, Amit Pundir wrote: > From: Christian Lamparter > > commit 3ab3a0689e74e6aa5b41360bc18861040ddef5b1 upstream. > > When testing out gpio-keys with a button, a spurious > interrupt (and therefore a key press or release event) > gets triggered as soon as the driver enables the irq > line for the first time. > > This patch clears any potential bogus generated interrupt > that was caused by the switching of the associated irq's > type and polarity. > > Signed-off-by: Christian Lamparter > Signed-off-by: Michael Ellerman > Signed-off-by: Amit Pundir > --- > Cherry-picked from lede/openwrt tree > https://git.lede-project.org/?p=source.git. > To be picked up for 4.14.y as well. This is already in the 4.14.135 kernel release. thanks, greg k-h