Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4164298pxk; Tue, 8 Sep 2020 12:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxswplQBRXrR4UdUZRd+njGuaHRI7M8gFnDdm9MVCVKaEnS56tL8e9FvoKCK0AcARMRPU1I X-Received: by 2002:a50:fb99:: with SMTP id e25mr496819edq.281.1599592753733; Tue, 08 Sep 2020 12:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599592753; cv=none; d=google.com; s=arc-20160816; b=tnu/02NvwP7xdJp6Zg+7Z2GJ/rokeGLn77M1MZSFrQQ4KunjfzLdJuiIJK3iKYDwLd Fbfn4alD5DiBYVoD6u6BjF5cGPJL93+Xxya5SzZbQ/oNchkPpME4jQBIp8GH3WgVgb3M ty01m5EYSNNgOi2qS9SNN6wKzCGDM1d2qEzqII+5Xz0uym15fEsvqBW/qwtP8Cny5QJZ d3zSru41vJK689O4gMnCS0P9CCGsL3GertLy4XVWsaXeAercD5GvYthJBrnWixAnxhsy olUVTF7ofZGx4xv8awZOV7bi4XuAZ4fPe57ZBAiPWCUArMzgwAIRKijqRnQctEhe3hDe E2uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=BZuX6Zr0Ruzj2IpP6siPkinTPpHdzjgZJEkArUG6Cps=; b=O4wf550ntd4pbSTEf5yd044LUE3/DhoqZSfZ1F0iwL4W5A2uRjBaEE2cgwLakjgOWp E/bAPspKeGWJOv3prMgjE6jBSHLFWMPd1xzCSvIfj32lyL9adxpjljLArBwLUbS1r93I ujdjfxF5LwnAA1K0r4gl5GZALhdQQW0vx0wArpMACTj/KBmqGr6Cjz8fLgidNWHbQCR2 QTtaO/A7LHak65CrAlubHoRbH0rS3O6WHVdtqYQjh+Jk8Tf9zquOmBcXelGIuKUYQpfI m3mqyHrdka5E+pnkGlCOuy9mzhVWGj9jmJerqZY4hkUc6Cs7PZsm7oOzpu8F6ry1acWC J/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="Dwl/bLzh"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt17si12197602ejb.56.2020.09.08.12.18.51; Tue, 08 Sep 2020 12: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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="Dwl/bLzh"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731256AbgIHTQy (ORCPT + 99 others); Tue, 8 Sep 2020 15:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731168AbgIHQE0 (ORCPT ); Tue, 8 Sep 2020 12:04:26 -0400 Received: from mail-oo1-xc44.google.com (mail-oo1-xc44.google.com [IPv6:2607:f8b0:4864:20::c44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A389EC061797 for ; Tue, 8 Sep 2020 09:04:08 -0700 (PDT) Received: by mail-oo1-xc44.google.com with SMTP id g26so1033196ooa.9 for ; Tue, 08 Sep 2020 09:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BZuX6Zr0Ruzj2IpP6siPkinTPpHdzjgZJEkArUG6Cps=; b=Dwl/bLzhFroBhODvJaJewz5RbJ8YaafGEwoRzzlmDdYEO1waAVgM4CoFUpE4JzK6eZ 5kMpsTnbBLKPNbUhbRmN6ww0GkRIYiUhE/l5UohvZ6ujarpUdiKVNBnTOSZLTqRTKD3p yj6s/nzEz+iIEEhz/1q/fj9QrE/vd9SQNNIUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BZuX6Zr0Ruzj2IpP6siPkinTPpHdzjgZJEkArUG6Cps=; b=ozWRxSmCMRISEQhHOeZb6fYXJ1f94XRVCNWJHtzDKabk/JDkBoaYfN6YBENiZ+S4pm guNjqa/hdz99A26CYlB/8Bm9yvHtDb2m2KGFgrOr0t0KLYewCVuL1QjfZqp9EqwPE7bq XabKGbKVrnv0fnPcUqZgUHoYiWwdtFNMRkvVW8L+smpcsh+GTMDm/S4qx4FyXTbA2q9t pDBcBTpz+9UG5NOkQCJ/nxkQDzmwfodK0WlInI5icF7JC7ebSKRgw9myPLloIYfUPMJ7 4TF0zA0WjdulFJMW3jSCaXnhvhfp9So0jSGsqcWTdroLMz+NHee/LPtfzPGf15vQC4o0 RXsQ== X-Gm-Message-State: AOAM5327byj2rapfL0UnvzC3rmi6WU93ZDYrJw9mgN5Cp1uKLCzwBPNm g4CBlVmjdsE3M8NdQg1Rit5lyw== X-Received: by 2002:a4a:a385:: with SMTP id s5mr19119405ool.8.1599581047972; Tue, 08 Sep 2020 09:04:07 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id w1sm3558618oop.16.2020.09.08.09.04.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Sep 2020 09:04:06 -0700 (PDT) Subject: Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2 To: Bartosz Golaszewski Cc: Bamvor Jian Zhang , Shuah Khan , LKML , linux-gpio , Linus Walleij , Kent Gibson , Shuah Khan References: <20200831032006.1019978-1-warthog618@gmail.com> <20200903083750.GA17445@sol> <20200904125250.GA323947@sol> <9db62b42-9a1e-0264-e88c-e636004cb629@linuxfoundation.org> From: Shuah Khan Message-ID: Date: Tue, 8 Sep 2020 10:04:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/20 9:54 AM, Bartosz Golaszewski wrote: > 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. > That is fine. I can do quick review and Ack so you can take them through gpio tree. > 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. > Tests and features go through subsystem trees to avoid delays. Please make sure the test doesn't break the default kselftest build/run. In the future it would help if you include all the maintainers on the patch series, so I can review the tests from the framework angle to see if they build/run correctly. thanks, -- Shuah