Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1292764pxk; Fri, 4 Sep 2020 06:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs1C/mFj8aieiUC44B1zRx7iqlSLwRwtJlrMF37QjmRF2SFYAAoqQ+Bxh02G4t3sMmjmNp X-Received: by 2002:adf:dd51:: with SMTP id u17mr7471271wrm.355.1599224671347; Fri, 04 Sep 2020 06:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599224671; cv=none; d=google.com; s=arc-20160816; b=f7dLuX62kYI0fx07XXO2GFraJsYDa4kQV80NQkKrtDKIygAt+iBuPgM4jqPL8TslBe VCYbBQoWWcEKr2Jfy4RKqEOTwChHCBssaggeSn8CLAyw5UeROEPN9ONGp6+dlrBUzAiJ xzzfedH2Vs+ceHLJGPebdmzZBKndcvoUCdZGCgXIrRho86IKrq1fupAVFiKl6Sj8bw5P CSOQkkIpwEUq65QNG2wZsPZgnCi/sjPR9dt3a2zaIfgkNe+lM6BcLEUJpVMSOkEgSBqH lM9ntC5N41jMMJ3t7U9O6/goz2z2Co3jp8UT+1uKMIHkor/jxThrZoxs9nj4ivJmYoIk M53A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=py331tU/dS8B+p+QL/GfpvBAThxgQcvBqHpIco6OZf4=; b=yWG2DWAnH6gTgV5O3NV8995KZVR0qKKSCtJeDDmiCXNzcbv2UOBTxmD33ytIz6nzAp kgI0nEg2SnF6VMkcdvpSUcWdvyBXZrvIk4B/FI5Np/dDFkZU7g0CWQ0L5x+7oZbecOcx xE7KF0Eitwkjo2li92j1JdVfL43Ub3FFFCMU5+r0xBnQPkRkyuY+jrL8Sjh++G/giPSo 02hYGPdVj0RCjF+Ch6GchQhuWky0DXih/540wS1Lcy6wLbIh/RU9Ww1cf0MYV0L4SWtr CHVpCiBB2JLCLic6heaSFVLqj/8bZNM96DdcyFjVYbDyUnPtCUhjYpZSH0VHO5FkZzFe 3dkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XPTAekBX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf8si4040354ejb.197.2020.09.04.06.04.07; Fri, 04 Sep 2020 06:04:31 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XPTAekBX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730299AbgIDNCk (ORCPT + 99 others); Fri, 4 Sep 2020 09:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730010AbgIDNCj (ORCPT ); Fri, 4 Sep 2020 09:02:39 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E44CC061245 for ; Fri, 4 Sep 2020 06:02:38 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id q21so6039527edv.1 for ; Fri, 04 Sep 2020 06:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=py331tU/dS8B+p+QL/GfpvBAThxgQcvBqHpIco6OZf4=; b=XPTAekBXdjp1zg6XcrQsSDBhv6Td+yjs6TQWmt2e6ABqt6Ces7wnkkjU3DyWIAxlg5 lLBbFAE7DfQBzEcwyBIKUKTNN+PVRtgyuZonLh5E9k/N7OW14qhI0wzljO6Dx4Gzi7DL zTbx45tIpaCydCDj8jvjwd6bT+julciQyTgPuU+Ov21SE1fnFu5Y8/qgzoDNAATmg1EG lkHJpWUHGwmUCdOel8ILmqCgXI17fzK/GPOrGEP4BNBHaaSJEaxD3+gKeZZuDCJqaaJX /QPknR2xkDKg/orAul0g2pWtPRlrBy8fFV4yXko3JI5BbAjWMA8gA+GKuP+UZsfikazY w4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=py331tU/dS8B+p+QL/GfpvBAThxgQcvBqHpIco6OZf4=; b=KBSA9U0GJJv60d3sTLkvNVv7HJfj8Cux/a0yLd4PxWYdqcXw933fltIVyeEPs/8i0L 2d+aKr9rqaBgvoHmx9g6MNSpvnl6uUUg2UgXEOgh+HxZehvY/gRZl3UjTsrJ9KVvhgO7 usNVx77SXKbxYjQA9UGLKFAOhGgxNrdhZeq1zcSCME/SGN6bXhPS+vtI3EJqypZlnQm9 SmOL+hZUlPY93S3UdcMln/Ebq5K8KOZzBegoTwDZArSf+G24smu1Uo4QfoTWLY9py9cb 16HWMG/TsrtPWFNdIsnRVfVZ4mw+ii085Rj5K7217gmRKhWr+pla/ioSE3SS1zSzXBcx VyCQ== X-Gm-Message-State: AOAM532uQIoDEFqXEgjYuparl6FH9BBmgAbjkwffn45WbON2tCjhms35 fD2WWBRpiwUqo5068ZmskPoXAWZk89FsnZo5IVmD7g== X-Received: by 2002:a50:e79c:: with SMTP id b28mr8612901edn.371.1599224556598; Fri, 04 Sep 2020 06:02:36 -0700 (PDT) MIME-Version: 1.0 References: <20200831032006.1019978-1-warthog618@gmail.com> <20200903083750.GA17445@sol> <20200904125250.GA323947@sol> In-Reply-To: <20200904125250.GA323947@sol> From: Bartosz Golaszewski Date: Fri, 4 Sep 2020 15:02:25 +0200 Message-ID: Subject: Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2 To: Bamvor Jian Zhang , Shuah Khan Cc: LKML , linux-gpio , Linus Walleij , Kent Gibson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 4, 2020 at 2:52 PM Kent Gibson wrote: > > On Thu, Sep 03, 2020 at 04:37:50PM +0800, Kent Gibson wrote: > > On Thu, Sep 03, 2020 at 10:02:04AM +0200, Bartosz Golaszewski wrote: > > > On Mon, Aug 31, 2020 at 5:21 AM Kent Gibson wrote: > > > > > [snip] > > > > > > To me it looks good, just a couple nits here and there and some questions. > > > > > > I think it's worth deciding whether we want to keep the selftests in > > > tools/testing/selftests/gpio/ and then maybe consider porting > > > gpio-mockup-chardev.c to V2 or simply outsource it entirely to > > > libgpiod. > > > > > > > Ooops - I wasn't even aware they existed - though it had crossed my mind > > that the kernel should have some selftests somewhere - I use the libgpiod > > tests, from my libgpiod port, and my own Go based test suite for my testing, > > as well as some smoke tests with the tools/gpio. > > > > The libgpiod tests only cover v1 equivalent functionality, while my Go > > tests cover the complete uAPI, and both v1 and v2. > > > > It would be good for the kernel to at least have some smoke tests to > > confirm basic functionality, even thorough testing is left to a > > userspace library. So the existing tests should be ported to v2, though > > should also retain the v1 tests if v1 is still compiled in. > > > > I've got a v7 ready to submit that includes a couple of patches for the > gpio-mockup selftests (their primary purpose appears to be testing the > mockup module, rather than the GPIO ABI), but I now notice that the > selftests/gpio section of the tree has a different maintainer: > > scripts/get_maintainer.pl 0021-selftests-gpio-port-to-GPIO-uAPI-v2.patch > Bamvor Jian Zhang (maintainer:GPIO MOCKUP DRIVER) > Shuah Khan (maintainer:KERNEL SELFTEST FRAMEWORK) > linux-gpio@vger.kernel.org (open list:GPIO MOCKUP DRIVER) > linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) > linux-kernel@vger.kernel.org (open list) Bamvor, Shuah: do you still have interest in maintaining these, or can we update MAINTAINERS? Bart > > The v7 patch up to that point restores the functions that the selftests > are using so that they build and run again. > So I should hold off on the selftest patches and submit them separately > after the GPIO changes are in? > > Cheers, > Kent.