Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4170889pxk; Tue, 8 Sep 2020 12:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx73aiyhkrFHeLTAKJWp7jbv4bg9i7asHidL1Z6AjQ87oopJwF2VPr/U8krGnb9UFCNyyPx X-Received: by 2002:a17:906:d8bc:: with SMTP id qc28mr28505217ejb.490.1599593421143; Tue, 08 Sep 2020 12:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599593421; cv=none; d=google.com; s=arc-20160816; b=x9jNRPMcZsCkoYmXZ6k17HTvfKP99ra8NYleWBKv3gTGs+5YDrO9ZodCO5s4rnmsVt WgcmrxTA97uv/3+Xr3lbI+VanWozULuOdxQTzWGGjuxVAVVmT7srzWcwel8ZI37wM1zR 5JT6XZtY4ABxUh/BAlXhL/WLvFSq4lRDjR2X8OarJZSOq345uA25Vm0ENC8Oeyq8DYdj HBa76qOSM/qoIJPpMz9heVLE4+CGD5AK0wm5bDW2mE0Batqhfhn0OMA5yNXF0wNWDaFI 3/IiRvUcO32SatipjcVSW2D55gBx4beQG2PwHiUI8gx3ocAGKJBHX+lLLRBhAW6QZTq3 RKew== 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=17XSh9T9gNq415bfysrvgCiRW+EHfAHcluquDHGHNnU=; b=d7G9ueFFKQZzofFOrhCv80O++6L2RoSsBAIgQCJ4JV0qAwMhAEb/yUlMYM3jlsU5pU vj7s3zNAjNQFPFdxg4wlTSL0AuhlhcSwgAmwq6rKmptnZ4HVt6fDdKNM4PGkOVZVC7Bn 3Lr4ai/nVSJgeLQYo/EThM4OkBYu5tr/Y72TBY0uiiBi6cjo4GLTglNnl08lBJRKzjT7 DDHjOJRQz58kxBPV/eK6oAJYUAUTpFQpFTtDJbwF08EYz+kqJ90XQinmXE/tpM61Je7s 7Em0iddJi3WccnmmHjKFPLdUm6w3PUceibnlJaoShpM5lsDopNlp8fa5SIM7WQA4qUfi jIFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ZnrFESfj; 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 s10si4750331ejr.574.2020.09.08.12.29.58; Tue, 08 Sep 2020 12:30:21 -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=ZnrFESfj; 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 S1732198AbgIHT1w (ORCPT + 99 others); Tue, 8 Sep 2020 15:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731041AbgIHQAE (ORCPT ); Tue, 8 Sep 2020 12:00:04 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8713C06179E for ; Tue, 8 Sep 2020 08:54:45 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id nw23so23269883ejb.4 for ; Tue, 08 Sep 2020 08:54:45 -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=17XSh9T9gNq415bfysrvgCiRW+EHfAHcluquDHGHNnU=; b=ZnrFESfj2n78+Vm/aeBARRjr0Cl6BRKSKMzxUenn2YsqHz8Pl5VtWf2kgaAcBY42tG B6CWuSSZlDpqHRQb6BvAO8Qj0aSubGzT2OhkHzSatWgHZuhO2NLDDWNtkzr4B3imS/ar vl/89rmyhmxmIqD0cMqudwdc04Tupg9qwaODQQgwyE2ZseTX3Oi4XRaKk99z2tCwuCfj xF3ioMRogkeEctXIZNPqqZoa8qg7SATyuUHcJvqPp0NZvi3TzX7TxnBmmb77PTiAyqqS DDuXcYW5+1LtcAKBO7gHRXJ7JKmKD3P/Xjy6nG/2KEc5U2+vRVO9A35znCSC6HNByGzJ 3lgw== 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=17XSh9T9gNq415bfysrvgCiRW+EHfAHcluquDHGHNnU=; b=rnT3s1sWX8zFG0wDSkuuKNXYASPujgqr3vI9bvMMHXXG4WH9nY+OfK1Htm/2AyXi5t HbeQOXHXJxZA2qt1VnY1tCXm4fcjsCXBEa/xotGiTX5osk6zM1pvAGLn8alsh80FaIGa A5rfB8Ba+eNzOIdbTavOu81tPbUAwXnN4w58fyh9eZJin1fwV6SwZpUpwKlkEAvRnjLX iNEf8yXC7v2LWfYx6aOcokB6vm82cOYDSruH80oSxMxMes436j2NTUO1P5j7ByrUx0oJ jJ0znwhdLcLMHVl//ShGW4MkKFnsbm0KHaWW08rQfookblBLohQGVInT7s7y5z4sLiXZ w0Qg== X-Gm-Message-State: AOAM533Y3ZUNyZHDKapGW2Sz85jDF+puDnvN0Z3yu3sFBnT6JxBwVjzM zZ70u5U8SfSUyuAEe/6Xjr0eQEkzD/9Ft+0qUTanLA== X-Received: by 2002:a17:906:3e90:: with SMTP id a16mr17063280ejj.363.1599580484242; Tue, 08 Sep 2020 08:54:44 -0700 (PDT) MIME-Version: 1.0 References: <20200831032006.1019978-1-warthog618@gmail.com> <20200903083750.GA17445@sol> <20200904125250.GA323947@sol> <9db62b42-9a1e-0264-e88c-e636004cb629@linuxfoundation.org> In-Reply-To: <9db62b42-9a1e-0264-e88c-e636004cb629@linuxfoundation.org> From: Bartosz Golaszewski Date: Tue, 8 Sep 2020 17:54:33 +0200 Message-ID: Subject: Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2 To: Shuah Khan Cc: Bamvor Jian Zhang , Shuah Khan , 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 Tue, Sep 8, 2020 at 5:24 PM Shuah Khan wrote: > > On 9/4/20 7:02 AM, Bartosz Golaszewski wrote: > > 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? > > > > I maintain kselftests and gpio selftest falls under that. Please send > selftest patches to me so I can review them. > > As for the gpio mock driver and test itself, you will have to wait for > Bamvor to respond. > Hi Shuah, I've been de facto maintaining gpio-mockup for a couple years now. Bamvor has been quite inactive as far as gpio testing goes. I think it's fine if you ack the selftests changes. In fact: I don't want selftests to block getting V2 uAPI upstream so if that'll look like it's going to take more time then I'm for merging V2 without any changes to selftests - in the end we have tests in user-space already. Bart > >> > >> The v7 patch up to that point restores the functions that the selftests > >> are using so that they build and run again. > > This test has been problematic because of its dependency on tools/gpio. > > >> So I should hold off on the selftest patches and submit them separately > >> after the GPIO changes are in? > >> > > Please send me the selftest patches. Also see the comments in > selftests/Makefile about excluding the gpio test from default run. > > thanks, > -- Shuah > >