Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3169106pxk; Mon, 7 Sep 2020 05:22:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxznCt7/8SPUKCDg5NUQLfUb4iApX6j9SFFmHJ5gWFPU+VCA0vWzRj49KCJ9B6l4c9o5aJs X-Received: by 2002:a05:6402:1558:: with SMTP id p24mr20768621edx.194.1599481334551; Mon, 07 Sep 2020 05:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599481334; cv=none; d=google.com; s=arc-20160816; b=lKbdvptPP1iv67dkqX9OBodXIHxovfnxYOI3sKDIRMC5lB0eugH3CpBlazW/6GFeo4 WuXxbOqnm07yAgA198VxMw7iHSKLXHTrZILidltV4UvEenKl23ni2e4cc0OuCQoMD78j 0c8bOzEK1pdqk3xE6iU4uPRi6CDJQhvidK7tPqRT5mXS6VOj8GFAySgYpodnxPhqg/6i el17jLxhHRQGKXCIrrwe99nYTCyZY7geIfjIfYO+3Js3gtvsf7htH7s9hUDkYEcWlLEl MyFGu7amtKq2YTtAPsrpzd05g5pnoJvXuDONreAANj1Ec6VgctMcTIJG41O5xetBi2nv eqgw== 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=Tw4f2wX8YqmmfCG4fLEsa1aDy9xcwa2clW6NhysDtyc=; b=TWfE0EHD170+TKPHUFargt//vzQljct+/FoANj01ynm6qENyY6pODSSMr01wgtzupg brR1qbYLIiilB0GEG0uS65qstMqDxh8dR4pZp82IPkvev3rqgvlg10XuYdwJT6si8gyF 4tJaJMxyXB/0AlwPT4VnnUIk/MA/msif0+bq3Lzj4haJAI4rcNapKzCs5DskHN2okmKG Rk5oDTf03B4juET05lEzsnEZnII/2TA3qCcvFFHn2P4z+9uLWVM0CpNtdZIJ/FnL6acn +bCdt2rOXOnJKXykGjXnvdACjI96oImaB8Ad6nlCE7rzbTFCXO7k9nc/GP66hKDGTeOM MkMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="vXqecv/J"; 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 t22si9206295eji.298.2020.09.07.05.21.51; Mon, 07 Sep 2020 05:22:14 -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="vXqecv/J"; 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 S1729283AbgIGMQ4 (ORCPT + 99 others); Mon, 7 Sep 2020 08:16:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729198AbgIGMGk (ORCPT ); Mon, 7 Sep 2020 08:06:40 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F772C061574 for ; Mon, 7 Sep 2020 05:06:27 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id z22so17893302ejl.7 for ; Mon, 07 Sep 2020 05:06:27 -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=Tw4f2wX8YqmmfCG4fLEsa1aDy9xcwa2clW6NhysDtyc=; b=vXqecv/JD1j08x2l2xv8uMY2f5Yrx4K3HukAwUizDgeJSij+T75ajGmL1q9blQ9UrJ qCvwj8FsbXkYLIOkfpnIyoCMd0YWDwu7jzDwuPBz5d/I0pvFV2rv2MaIlzwpB+L6BBvL KLuAAE/uYoT21Qcb0Ek9uNjNv+Tc1kJZB6gBNZEqfR4K8F3owTI8UDBaBNdeerEXBRQf svknQedIT00FvncGNd3SMt5eJGRvr9n1qI1k7jYBXFJTuIChik7GAJQR8GK7RuqOeYDV 6OpI9z0F1CVv5xPg/cyAf/YafdgiGJcwRMOp33wT+hcztaMEzFbH2LHAvgY5FPcU8BxK qNyQ== 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=Tw4f2wX8YqmmfCG4fLEsa1aDy9xcwa2clW6NhysDtyc=; b=OT1xUqQyeCML9glgJ5RU5hI5nuV8qvJRSBSn0cYvIzT2/v13GyFlmeBjBVZ8O7XCHk sbHmqUoolpH4z5d5VzSCKcKNvhYn0rhbkvGdUKh7/04Ri1JbLNSFPWyTHWyS2clUKaWO IG7EmIOxJ0SPASJhHCI/XUfDxTUFNoA/+7PDHsngWCnGue4X9VL+lTWxxno/9A2zQ2fE vRlM5i4qrtI3JFELGpPGzevycgbqf4hDe/hRj/s2IIYlznyY4Ui1OtYDZKAkMzhsZtDi dkFJmql8JvGqWZizEB3Iuh2W292Mncp5hAh5i4S0ddQbcgllbBYGydEOJkQrIbCCFRTP gD8w== X-Gm-Message-State: AOAM532TuAUjwwpxGQCXWeF7exgB0zIumjtIFcAMmMKZLu5AsAuvNr1/ J/WoHBtlhcSQP3p6fTDUL4DPgpdVIu+ClOri7Z/I5w== X-Received: by 2002:a17:906:f11:: with SMTP id z17mr2135074eji.88.1599480386425; Mon, 07 Sep 2020 05:06:26 -0700 (PDT) MIME-Version: 1.0 References: <20200904154547.3836-1-brgl@bgdev.pl> <20200904154547.3836-24-brgl@bgdev.pl> <26ea1683-da8f-30e7-f004-3616e96d56b3@infradead.org> <20200907095932.GU1891694@smile.fi.intel.com> <20200907115310.GA1891694@smile.fi.intel.com> In-Reply-To: <20200907115310.GA1891694@smile.fi.intel.com> From: Bartosz Golaszewski Date: Mon, 7 Sep 2020 14:06:15 +0200 Message-ID: Subject: Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup To: Andy Shevchenko Cc: Randy Dunlap , Bartosz Golaszewski , Linus Walleij , Jonathan Corbet , Mika Westerberg , Kent Gibson , linux-gpio , linux-doc , LKML , ACPI Devel Maling List , Greg Kroah-Hartman 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 Mon, Sep 7, 2020 at 1:53 PM Andy Shevchenko wrote: > > On Mon, Sep 07, 2020 at 12:26:34PM +0200, Bartosz Golaszewski wrote: > > On Mon, Sep 7, 2020 at 11:59 AM Andy Shevchenko > > wrote: > > > > > > On Fri, Sep 04, 2020 at 08:15:59PM -0700, Randy Dunlap wrote: > > > > On 9/4/20 8:45 AM, Bartosz Golaszewski wrote: > > > > > > ... > > > > > > > > +GPIO Testing Driver > > > > > +=================== > > > > > + > > > > > +The GPIO Testing Driver (gpio-mockup) provides a way to create simulated GPIO > > > > > +chips for testing purposes. There are two ways of configuring the chips exposed > > > > > +by the module. The lines can be accessed using the standard GPIO character > > > > > +device interface as well as manipulated using the dedicated debugfs directory > > > > > +structure. > > > > > > > > Could configfs be used for this instead of debugfs? > > > > debugfs is ad hoc. > > > > > > Actually sounds like a good idea. > > > > > > > Well, then we can go on and write an entirely new mockup driver > > (ditching module params and dropping any backwards compatibility) > > because we're already using debugfs for line values. > > > > How would we pass the device properties to configfs created GPIO chips > > anyway? Devices seem to only be created using mkdir. Am I missing > > something? > > Same way how USB composite works, no? > OK, so create a new chip directory in configfs, configure it using some defined configfs attributes and then finally instantiate it from sysfs? Makes sense and is probably the right way to go. Now the question is: is it fine to just entirely remove the previous gpio-mockup? Should we keep some backwards compatibility? Should we introduce an entirely new module and have a transition period before removing previous gpio-mockup? Also: this is a testing module so to me debugfs is just fine. Is configfs considered stable ABI like sysfs? Bart