Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2521424pxa; Mon, 17 Aug 2020 11:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwicAn2vTDGGq8F/KJxUATuMpEwvtJfj83XBiXqlxedAHfS5oxXHqwnGKEYNONmLomzZHmD X-Received: by 2002:a17:906:403:: with SMTP id d3mr16229931eja.522.1597689766781; Mon, 17 Aug 2020 11:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597689766; cv=none; d=google.com; s=arc-20160816; b=hLgHcrae6xXhk7WIzGrkoLAvc2wGMAHpKLTX7tbhRA9z/W+IUqTzuNn4ppdeRSk0IS nEFscUbCQgspA0oNQ06lxjKPIiyRaNoRvOcfuBZCWXYa795C9baG7J7jeF3XsJFvSDB6 9yhoiQ6bGtxe6SlNnALdh97FOmGB0qN91dWyQhkMBGtsYdK8ajLPt6FIUNqfDcPlnKrg sQk8o65K/t7sj/6yzOVo39kuMD91iHrCgS3iOLcVKnHaspiR+hppB6o3jSLK63jqGcrr 1pHlndhsp9F61bw0WnGarGmWFLYDLZw4eeK5vJK3hzVSmjUIbRL5offawoCifl+Jn+1Y RkPQ== 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=9F4YwEwPK9x7S96R/orLQMdjwj1jkIZTwZQy5laMhIU=; b=lGOQEjXe38nfVZWBS9vMZyyyLDp98FKoDv0huMzbnpeUO6HhbCldQmiHKE/nAajcnN 3tjVvckg96WPTTHLhZvdv589qh+wFct1s0uiPzOCoLI3Ps+yM7S689SB6oYcBJMwCA/C PeTCrAyVLVFpXe41MuCh9QhxGoc9tkBWEKG1GuJllxWaHdn4mJBlII0ZDmKrZtdzoFAf mAInZXg2IixZSPjGfIROLp2+3W/8rFqJFa4gEupu93nXpPcpUPoPjG7Cs/vgtP9h7TM1 tC0BwL2ISNrZXIvNbiF0CH3tUDZ1yc5o7usK+M9t/KdOo80WkjsR9eL6j/0hfu5gaHLq 0+pQ== 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 bz27si11747483ejc.415.2020.08.17.11.42.22; Mon, 17 Aug 2020 11:42:46 -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 S2391412AbgHQSkr (ORCPT + 99 others); Mon, 17 Aug 2020 14:40:47 -0400 Received: from mga07.intel.com ([134.134.136.100]:34905 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387965AbgHQSkX (ORCPT ); Mon, 17 Aug 2020 14:40:23 -0400 IronPort-SDR: C+wxtgCfVfmKhcjAu48yXh8rPzLOnHkB+CFaCj57oPK8885Sx8EVQPlttXu/S6u7+7lcDEsWJi uA6MSfaaFWpA== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="219093665" X-IronPort-AV: E=Sophos;i="5.76,324,1592895600"; d="scan'208";a="219093665" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2020 11:40:21 -0700 IronPort-SDR: qwIq53Nbz+h+rUZRC7HF+/ezgtonG3ao5oVglIRhEJtkrL7hwHqBOsP2WxnnIOK8/5fin4ByJG fv0DtQKglrDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,324,1592895600"; d="scan'208";a="326491264" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 17 Aug 2020 11:40:19 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1k7k3O-009UFq-Ck; Mon, 17 Aug 2020 21:40:18 +0300 Date: Mon, 17 Aug 2020 21:40:18 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , LKML , linux-gpio , Linus Walleij Subject: Re: [PATCH v4 00/20] gpio: cdev: add uAPI v2 Message-ID: <20200817184018.GV1891694@smile.fi.intel.com> References: <20200814030257.135463-1-warthog618@gmail.com> 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 Mon, Aug 17, 2020 at 08:24:24PM +0200, Bartosz Golaszewski wrote: > On Fri, Aug 14, 2020 at 5:03 AM Kent Gibson wrote: > > > > This patchset defines and implements adds a new version of the > > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > > support for debounce, event sequence numbers, and allowing for requested > > lines with different configurations. > > It provides some future proofing by adding optional configuration fields > > and padding reserved for future use. > > > > The series can be partitioned into two sets; the first eleven > > contain the v2 uAPI implementation, and the final seven port > > the GPIO tools to the v2 uAPI and extend them to use new uAPI features. > > > > The more complicated patches include their own commentary where > > appropriate. > The series looks quite good to me and I think we're on track to get it > in for v5.10. I'd love to have Andy (Cc'd) take a look as well. There > are some nits here and there but as long as we get the ABI right, any > implementation details can be ironed out later. > > I need to think about some details a bit more but I really like the > current state of the patches. First of all, I apologize for being silent, I'm quite busy with internal development / work. Second, I didn't hear further why we can't fix current ABI as proposed by Arnd and see what we will have afterwards? Third, I'm not satisfied with the approach of wasting some memory for padding and I think the proper solution for the ABI is to have versioning inside the structures. What do you think? -- With Best Regards, Andy Shevchenko