Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4184905pxk; Tue, 8 Sep 2020 12:55:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4lVHhVtooxT5aZzZNbG0QplEPdpXMvyGDrwvKxS3pJyu+1XA5LHoZl080T4cVeb7Z29Ct X-Received: by 2002:a05:6402:1a48:: with SMTP id bf8mr691470edb.298.1599594959401; Tue, 08 Sep 2020 12:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599594959; cv=none; d=google.com; s=arc-20160816; b=lnPX34OzaJsVlWHoRR12BYbaFscuOapI9BWw/wlKLFrDKaLFtbfbWbsQhqq7qXM+FV 5MX+rkvTBAfkmcdVa8PqE1LT2XGT22hSFpYioLMYCa6jtaknsy/K+u9RZ55DRXPSP+Ua Py+iRn7IML8V1yPfFKWAL7Dp6IAmGFeaPJa6RJNl3skXA1YPou1n3pi9lssjKKmY9TkJ EiXdiDAR5yX+uTFZUe047FwLlrKI3jkJQL8U4BWgfU6ykOO38R/vg+B18m3cuKKqPCrP m7qQfuBbN+i5B4tdWoWAHTg52ekEDRBMgeKn6HCVgmNoITD7WSUtFtVKLnnf54XuHTMq xXGA== 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=G6ViLODgIVrthYfKcZQ7FI0bgtyUL4tDP++rqJGkVeI=; b=z+5syV1szic/SmkyYWGZBlH/eKoJlm/5XeTKDeyiJ7R7VrJEQPylF/h9ThQBs1CTLE fmu8ztTQ8IE17ughWVm9eAJv2S5qiRpbHeiJVh/BD3QEpmfefuOTD3r3cjj6ZBYdVF/w pArQaAgNCVfQoR4v4i4ueYBPQim8brcR6G4x5NLJbAlrl/1M/kD3V8nPYVO0id7b5vAx vqNeO5KQNSVvbcim58oMcmcH4Xg+oQldf/wHMyBB3rcXOIrBzTTfjj7BH0UrPKmslltJ sntDZSrxGWJt6z72T3iRhoJQ2x4BqYehIws4QyIZhrpjmceuY+FhbOf+8ixCdzk3pMrQ wmIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="iarUR/yb"; 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 g3si39528ejw.227.2020.09.08.12.55.34; Tue, 08 Sep 2020 12:55:59 -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="iarUR/yb"; 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 S1732464AbgIHTzG (ORCPT + 99 others); Tue, 8 Sep 2020 15:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730627AbgIHPhg (ORCPT ); Tue, 8 Sep 2020 11:37:36 -0400 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284ECC0612FB for ; Tue, 8 Sep 2020 08:24:58 -0700 (PDT) Received: by mail-oo1-xc42.google.com with SMTP id m25so4030983oou.0 for ; Tue, 08 Sep 2020 08:24:58 -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=G6ViLODgIVrthYfKcZQ7FI0bgtyUL4tDP++rqJGkVeI=; b=iarUR/yb8+vhpB9MCNX6sNi5tVLKL2hEF2c1YCH4ZGlP4A40m00LY0Zan7YWLCbFRG iWHZSUVOrXv0/h/LB4Su9Vv8y7LSofbP/248L+GszV9UVPREAJfzDqoWiASfyTqkZGBL KtfIvLB+ozrc3BjhRT6aaqpOKhEpTc5jQbkB8= 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=G6ViLODgIVrthYfKcZQ7FI0bgtyUL4tDP++rqJGkVeI=; b=JTQrm6Tsnrnt4EWKPJg3HtKYjlYAAImM+zujF0Dz7Fce9+7Rw897etCMcqdEeScJy3 e44u/ne3hdoK9e9BWJb/spMbF6lfJFdLwpJ8HCGg9DM93T/5CBWdtOea2NI1xdvVjnQY kwCiuE2ZujksombqvsDVL91QGCNs2mnGx/sH4ZSLagznT+WNlivY6MRmXqJnUfAxTK5+ Vk8D9Lu4hGlKu15Euh80ogjtDNBHJ4VqNn5P+tZAi4UUWhrf2CvTKAHgPhyzPmitSMq1 iQDHLIisMfIVvHy7shgSgTIA7d32Mo4d17AU0BAzMVCjINfwk656Nb2G/n48tNgWZpTu CpAA== X-Gm-Message-State: AOAM532XVg0YkSnzK/gJAb+AwOirbi+E4u/LWfvGDpzvGA/iNUkc47F7 +Wdt6lVqXNxrJSJWGlvoxmnVxw== X-Received: by 2002:a4a:81:: with SMTP id 123mr18910109ooh.80.1599578697111; Tue, 08 Sep 2020 08:24:57 -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 q14sm162188ota.41.2020.09.08.08.24.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Sep 2020 08:24:56 -0700 (PDT) Subject: Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2 To: Bartosz Golaszewski , Bamvor Jian Zhang , Shuah Khan Cc: LKML , linux-gpio , Linus Walleij , Kent Gibson , Shuah Khan References: <20200831032006.1019978-1-warthog618@gmail.com> <20200903083750.GA17445@sol> <20200904125250.GA323947@sol> From: Shuah Khan Message-ID: <9db62b42-9a1e-0264-e88c-e636004cb629@linuxfoundation.org> Date: Tue, 8 Sep 2020 09:24:55 -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/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. >> >> 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