Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1109519pxk; Thu, 10 Sep 2020 07:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrrIR8b4wYnGz+FvQSV+FqGxpYkhnVec9aklMTsohGrTjJ2DcVQrT2S/GyBAPzdcynXzv+ X-Received: by 2002:a17:906:5f8a:: with SMTP id a10mr8811700eju.502.1599747553097; Thu, 10 Sep 2020 07:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599747553; cv=none; d=google.com; s=arc-20160816; b=MGYsg2Le+xRytQbhQwZubdTv6+BVtp07bi1qCEyGrAffoM2Yx+Mzb2QsFUcq7Vkb4j L74IBwos2qxTsWGODpo3V9mrMgNAnAWQjESTDl3gYAIOWzGADzILwTwy3AsWZh+Bi8IQ +dhd3ulVvpCTZX9GCcYvYN0Oex4sMLG9fOluvO8Zy/vJqLIjYTH6cAIsET/lMCBQiNND EyDOoIPA///Ly3p2tMmHCC96BiOeC52Dw5qDg03EHbFARJATjvq2IzocKTh21iwAJmyh b6Oza/nOgPX3ABtRqt8Sl0g2VHwRhWdZN39NRG/gH5eH3p/i+DS49MsXplp/PUBtzkkK 4ohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=b4wfT4mcJ8K9b1n/5WyBo9dgCLJhlWku2liaxDmZC5g=; b=PMqdxmxe5Xd1zOMbQTOziEMoCBnjnfU+T1PbqIibb8l4MUsFUBjrS859mgQuikmj1Q 9Tt4gL4Rf6+ypsIS+PktflzBddDTuFLkdo1CYS38T649GLdef6V8hTF3h5e+s+RqtTqL NmoUG5GK2XtdHRqRoELZlnxOL2OdsIRUgLw0QXK3QLoauVlJM+P21URnHMRxBVuY0Kpl I9W7mlEbkm/x7LHezWKDg41J4JBipWbWhNEUi57hyFS4attU+XMZTWbHz7ZsOpZXLENw GqqzeLed4VxfxerwPHDu/AqXwXQRp2TELQ8UrQCESs6myRFPhv7zy5CfVu2eQ+cnx+MN C6tg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si3591902ejy.711.2020.09.10.07.18.46; Thu, 10 Sep 2020 07:19:13 -0700 (PDT) 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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731160AbgIJONT (ORCPT + 99 others); Thu, 10 Sep 2020 10:13:19 -0400 Received: from mga06.intel.com ([134.134.136.31]:39485 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbgIJOKV (ORCPT ); Thu, 10 Sep 2020 10:10:21 -0400 IronPort-SDR: Min1bTY0xZGuny46PvCA/BEQOjNFljgjnvzRz3XPg1WB4jEDBdUBu8vdaWkLDGGHOriUdzAcI0 S2mwOdEFfvGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="220094622" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="220094622" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 07:09:53 -0700 IronPort-SDR: klNNvDgZxDCuviZmobswONAVyPCmP8GaAcA/Kr423br6kkD+2RYE1Q3RDiV2PzL75tSKryK/fw 5DwIQfn1Mn6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="334185991" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 10 Sep 2020 07:09:52 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kGNGn-00Fhaa-Q4; Thu, 10 Sep 2020 17:09:49 +0300 Date: Thu, 10 Sep 2020 17:09:49 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , Linus Walleij , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" Subject: Re: [PATCH v5 00/20] gpio: cdev: add uAPI v2 Message-ID: <20200910140949.GV1891694@smile.fi.intel.com> References: <20200827140020.159627-1-warthog618@gmail.com> <20200827224742.GA3714@sol> <20200829013532.GA5905@sol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2020 at 11:28:13AM +0200, Bartosz Golaszewski wrote: > On Sat, Aug 29, 2020 at 3:35 AM Kent Gibson wrote: > > > > On Fri, Aug 28, 2020 at 04:37:19PM +0200, Linus Walleij wrote: > > > On Fri, Aug 28, 2020 at 12:47 AM Kent Gibson wrote: > > > > > > > The particular use case I am considering is one I had been asked about - > > > > changing a requested line from input with edge detection to output, and > > > > vice versa. Losing interrupts isn't really an issue for this use case - > > > > it is expected. Yet the current implementation requires a re-request. > > > > > > This is possible to do for in-kernel users, but I don't know if that makes > > > sense for userspace. It is for one-offs and prototyping after all, there > > > is no need (IMO) to make it overly convenient for users to implement > > > all kind of weirdness in userspace unless there is a very real use case. > > > > > > > Fair point - in fact it is the same one that made me reconsider why I > > was so concerned about potentially losing an edge event in a few rare > > corner cases. > > > > Another point for this change are that it actually simplifies the kernel > > code, as it takes as much code to detect and filter these cases as it > > does to include them in the normal flow. > > > > I had a play with it yesterday and the change removes two whole > > functions, gpio_v2_line_config_change_validate() and > > gpio_v2_line_config_has_edge_detection() at the expense of making > > debounce_update() a little more complicated. I'm happy to put together a > > v6 that incorporates those changes if there aren't any strenuous > > objections - we can always revert to v5. Or I could mail the couple of > > patches I've made and if they seem reasonable then I could merge them > > into this set? > > > > Cheers, > > Kent. > > I personally like v6 more. The code is more elegant and we've also > tried limiting GPIO chardev features before and now we're doing v2 so > let's not make the same mistake twice. :) > > I'll try to review v6 in detail later today. Let me briefly review to this. Can you remind which patch has a top level description of what features are provided in comparison to uAPI v1? (Btw, do we have some kind of comparison table?) -- With Best Regards, Andy Shevchenko