From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567AbdJSNic (ORCPT ); Thu, 19 Oct 2017 09:38:32 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51660 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbdJSNib (ORCPT ); Thu, 19 Oct 2017 09:38:31 -0400 Date: Thu, 19 Oct 2017 15:38:28 +0200 From: Andrew Lunn To: Gregory CLEMENT Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Cooper , Sebastian Hesselbarth , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, Antoine Tenart , =?iso-8859-1?Q?Miqu=E8l?= Raynal , Nadav Haklai , Victor Gu , Marcin Wojtas , Wilson Ding , Hua Jing , Neta Zur Hershkovits , Ken Ma Subject: Re: [PATCH] pinctrl: armada-37xx: Add edge both type gpio irq support Message-ID: <20171019133828.GC6615@lunn.ch> References: <20171019131003.9684-1-gregory.clement@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171019131003.9684-1-gregory.clement@free-electrons.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 19, 2017 at 03:10:03PM +0200, Gregory CLEMENT wrote: > From: Ken Ma > > Current edge both type gpio irqs which need to swap polarity in each > interrupt are not supported, this patch adds edge both type gpio irq > support. So is the assumption here that you can handle the interrupt and flip the edge, faster than it takes the signal to change? If the software is too slow, you loose the following edge? And you might loose the edge after that as well, since the software will at some point handle the interrupt and reconfigure the edge, potentially for the wrong edge? Or am i missing something which makes this race free? Andrew