Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3106724pxk; Mon, 7 Sep 2020 03:27:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0TVm5w+oVYqlfzOgTJIaQguRt3CcrHStytMZdHmGMKXjJP+OftnPRcjhlqfhK/JSCcbU8 X-Received: by 2002:a50:d9c1:: with SMTP id x1mr21495804edj.283.1599474473551; Mon, 07 Sep 2020 03:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599474473; cv=none; d=google.com; s=arc-20160816; b=PgBSWn4nIWk0pnI98l7LtOx2e+MU5XDVQZ2nHwqzgUVgMXQ0ynUYx8lMK/KJlgyD2v /9VPCu/xS+l7FqAB++gJsFPmVsHiZOE8wmju8OxvqpSzbQ6M8UdvSEDIOWVr/GX9fTT+ Pbs3Pfh0eCnFtelSKeU8AJ+wAg8Kccvq12U39j5PXovMZH6CuaPxe9Fw4W3x99dw40i5 bobJP16o8txY5tBbcKAZX+FzMt+CctEpD4EiLSp1BXShNOI04Vse9DbVOf1DYF2kJl/a Vjjcl7wSPXiBjEy5+JqaN4d7S2dDwbBU8OzrEV0TUOArGjNl5OWVw3dv56dGc6b8WL3X lYkw== 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=HmvvDOBbOI3Ap25LolJkNiUzAqYW/BkylmIeV4YjRD8=; b=uEyeZAE+9FslHIxDdHqMWL9pXlCw+aAAwl8lbtUY7NOfiqZGNSDUdQbXi0RewMSba/ ffcDl5CUHHd4a0dF6a9MQVvqFwvM2ga/t2s845HgFbMEdFT0ZTNS51dNO4YNqrfIwvi7 ZqmJfyxkLBU78s++4GaB9S7Hi39D3b83n6BU5J4bIGbNZWToGlyPl8UjN/G7Rc6BXTJe NEYIzcZZhg86LQrtxJG7G6vbTgSX4PzerguJj6+1q23TQ75M+dDaF0WMnLb5fLYDHCyP QscAY9oSFDioWEFjxzbSq8wjVPkwZGzF3HtDg0pna7gc4au1DgXuxlohrz/+9wK0HfnJ Jo7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QDdavu3Q; 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 n11si10387967ejg.69.2020.09.07.03.27.31; Mon, 07 Sep 2020 03:27:53 -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=QDdavu3Q; 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 S1728715AbgIGK0x (ORCPT + 99 others); Mon, 7 Sep 2020 06:26:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728913AbgIGK0r (ORCPT ); Mon, 7 Sep 2020 06:26:47 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34145C061755 for ; Mon, 7 Sep 2020 03:26:47 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id i22so17543569eja.5 for ; Mon, 07 Sep 2020 03:26:47 -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=HmvvDOBbOI3Ap25LolJkNiUzAqYW/BkylmIeV4YjRD8=; b=QDdavu3QQmHCnnU4KwLOJr5Oqa+V9NiMQ1XwjqwN4Vf2/Yl3FamhFwkRnK9uYu0WMM PSIo98ml3rL98H/MFyPHXu20UitXy3KZs6DuWoJyxF5RrbDa1aPfsa1zk2tKopjDf92t oxo871xKdzsVRbGhOSWrfmLzWXP1g3/zK22U4SR+waK/pY8uV+I18/6oBOqI7kXsfGG+ lRPUidIYCyv/fl7hMJdze89IE3yiK8vG8YSPcuMTCt3puxMTRgbzm+XlUiKl6PSZAZFB UrTltAyeJJ/5hiL9WET3bwgBk0tFhMnH+r3fxLY6lbC1V0A6JzZcriwY/wtmltFYV3GN TqjA== 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=HmvvDOBbOI3Ap25LolJkNiUzAqYW/BkylmIeV4YjRD8=; b=QSNvlsoSgSVYNyj39agkBbNTmSfQ+GNOzr+LPxv1gs3zkV//UjuwAWb2ygpa9eXIkP zrmU0L+g+oONmMJRKe+xVLzIR2dZ9/K5z6JkvkKYOb20MgcJPj09F0DuTl20T4nFehA4 sMuzEjxJNXe2ODGyxNpo38bJvw+j7d09bYkaUL1u4ur3Ew0E70eyS9ZPU7DyU5tD3dWN 9Dm6QQJVHWV0sraatkGLJ3kTaAsaGDi8w5Y1kqUtUgDsd6lSokUes3z7pjIScLN8OnLH 3eHB8bZvdpKEG5UZrDa0XDOk5vi444GWrQqfqj0W+l8HiavWthF7ue7aqLMIDuaQuDXX 99WQ== X-Gm-Message-State: AOAM530lBOnMxuGim+93aAzWUrRMeev9q1XhMLgqAf/WPSC2tIFfAarc gKnXCyvS9nwaw6CLItkwquVNeV55RvE2O0ZKwTtUUg== X-Received: by 2002:a17:907:20d9:: with SMTP id qq25mr15792481ejb.382.1599474405853; Mon, 07 Sep 2020 03:26:45 -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> In-Reply-To: <20200907095932.GU1891694@smile.fi.intel.com> From: Bartosz Golaszewski Date: Mon, 7 Sep 2020 12:26:34 +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 , linux-acpi@vger.kernel.org, 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 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? Bart