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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C59F5C32772 for ; Tue, 23 Aug 2022 12:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242432AbiHWM4m convert rfc822-to-8bit (ORCPT ); Tue, 23 Aug 2022 08:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241404AbiHWM4M (ORCPT ); Tue, 23 Aug 2022 08:56:12 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29846F57D; Tue, 23 Aug 2022 03:01:10 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oQQi4-0003tG-BS; Tue, 23 Aug 2022 12:00:36 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: =?ISO-8859-1?Q?Jo=E3o_H=2E?= Spies , Linus Walleij Cc: Bartosz Golaszewski , Jianqun Xu , Maya Matuszczyk , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl: rockchip: Enhance support for IRQ_TYPE_EDGE_BOTH Date: Tue, 23 Aug 2022 12:00:34 +0200 Message-ID: <4242490.iIbC2pHGDl@diego> In-Reply-To: References: <20220808025121.110223-1-jhlspies@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 22. August 2022, 11:03:08 CEST schrieb Linus Walleij: > On Mon, Aug 8, 2022 at 4:53 AM Joćo H. Spies wrote: > > > Switching between falling/rising edges for IRQ_TYPE_EDGE_BOTH on pins that > > require debounce can cause the device to lose events due to a desync > > between pin state and irq type. > > > > This problem is resolved by switching between IRQ_TYPE_LEVEL_LOW and > > IRQ_TYPE_LEVEL_HIGH instead. > > > > Fixes: 936ee26 ("gpio/rockchip: add driver for rockchip gpio") > > Signed-off-by: Joćo H. Spies > > No reaction from maintainers so I'm just gonna assume this fix is > correct and applied for fixes. This plays with behavioral peculiarities of the gpio controller (using the level setting to hopefully prevent missing edge irqs), so doesn't follow So I guess it really is more of a wait-and-see. And I guess as Joćo seems to have experienced that issue, that will hopefully work for others too. Heiko