Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3153228pxk; Mon, 7 Sep 2020 04:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3le5VZDAgaBLN07x0ECmMkKTnPiSELZfsqgqdsIi78O8aP546PQk6XVaRCl33RhStE4gB X-Received: by 2002:a17:906:6a52:: with SMTP id n18mr20313589ejs.58.1599479867615; Mon, 07 Sep 2020 04:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599479867; cv=none; d=google.com; s=arc-20160816; b=gSbCQc0O/BpEiZR+XYKgbm3oV5HjR1sHXV7+2QICDie0aFpt9ghsMXsAqlF/fj6fij qAEfx4DXbZ+UjWephGRdOxpIM5YxmMHwudCl1wEmRjn0n1x8L1Yp595cyjbqfO6K/JCJ tdmLU7dZ/cJfUgY6PeSGT9ua8RUBMERxr8Dqp7p1O013Bgd0/6Q0ro7JlZzi4JcPBXfR y/Bw7XO8L31Ik0uTq8oS25Q7JKTBYsnhM0WVaxdRyHlURs+YaWUdVixjajS21b03jsSQ SbQkdzNYo/mtaTcc/5HyJL2OoJp8tJ9cqLE1RHLb2XBC4cRxelM/G1Kc/Tey4yo7b7gb daFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=s/6pO8N33EGkrG/0zycAQLvmO9jIsIDNnPBmx0z9epM=; b=EhXiNv4y+GbCfcCYqLZlTIFvSiNjJTbx1mRqZBEqbqYcj7ABToliv8maHG8HIcGIVq LPILM79DlQATtQpQvSNgC+VNohv8MP5WynDQb7jvRJp9+u2eAV3vjIGNzv1ifQlRhEJO DwXx1ue4jV0O1x6Ac/gw0nuZsxJH462nifwCYhBycGGefF37ynver2W/5yIilOqqM2PA zYgzKqS+pv/JpLrq8orMKE82aw18H/FbBtuMDNmyuYG5jQuAo6xjtfC1LaDYVfX3p1Zf OC/Q6omFLnKwPHXZDubR0vHwWPqZtHwR7cbgFSnKJeR0oyWXX1LPZq3WmcZNbJTV5Jbd kZ1w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si9534211eju.731.2020.09.07.04.57.25; Mon, 07 Sep 2020 04:57:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728973AbgIGLz4 (ORCPT + 99 others); Mon, 7 Sep 2020 07:55:56 -0400 Received: from mga04.intel.com ([192.55.52.120]:28367 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729178AbgIGLxp (ORCPT ); Mon, 7 Sep 2020 07:53:45 -0400 IronPort-SDR: D1BCgaLvVdV8i7RbTPUbCLG0ekRStFm4lKfXrBjjG+Eh4oU+nF+1ICumtvenkfFBVJw5SzWcro vj2exOHv+qQw== X-IronPort-AV: E=McAfee;i="6000,8403,9736"; a="155393671" X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="155393671" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2020 04:53:16 -0700 IronPort-SDR: ixF7b9yAVn836fAh6s2qzvEa19zv5JnMJMadxQWU2fYVdf/AbkKR8SLryoAUkqNJeLEyZYAANW 7IyoOszCVMhQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="333143101" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 07 Sep 2020 04:53:13 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kFFhu-00EwMi-ER; Mon, 07 Sep 2020 14:53:10 +0300 Date: Mon, 7 Sep 2020 14:53:10 +0300 From: Andy Shevchenko To: Bartosz Golaszewski 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 Subject: Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup Message-ID: <20200907115310.GA1891694@smile.fi.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- With Best Regards, Andy Shevchenko