Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3173927pxk; Mon, 7 Sep 2020 05:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ztZm5n3yTmNnpd3K9SChiijjL76GAhu5w9HxBAYy46iXYpf2mmVz6/0doMND1PrYKJXg X-Received: by 2002:a17:906:454a:: with SMTP id s10mr20644471ejq.138.1599481870185; Mon, 07 Sep 2020 05:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599481870; cv=none; d=google.com; s=arc-20160816; b=dt8lNeJXS2tA4/seaRvAfdW5lFTE0YuMGaVjh1ZqNdXh3OtmKnM8VjmSitwAcNM+KV vUzGYR/mEz5A4B0PzF/+TgidpbCBU5D6nEUYT1ODYmUvLryLNu/F5R+2B/Y9vMLpq8Wg Q2mD9MNechWaasSyvZ/IODvZrmKLUaCjyRpeFjs22k+MxgnRO1u4gTU0mApJ8OlpQ0U9 UMpn8vOoPX8go6Tq1gAc1FTo0w3qiPspfWJl+RdhaO8KZQ3uCY0AJxPbOz1uy21FlWOh ieuElo629R9xrhnn+orlHmjgmvw2FLZ5Wm+4C0droooajX4lQNoI5nuW4Batk+MHcSEF W/Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PanCQwL7x4pNuBkUmq1+xSMKg6gt5YAN1g2/61j5vHY=; b=NPVkcfF6rSYcSp1YDY45k5O5UA7mlA643Q58i9Z+k0OYoXXXYlYvgNTUg/vQo1LGKq Dn7LntdEVTaHWwCLzhL5xIKhkKaWYsLSeRH2Dv2ia2O9ODY/LN9pwlBNt52YbKf0pser Y42Bp54ArVNFXT0UoRw1gSW1/rJmOULihFUG/EouF1nCk4TPt+V35P/hyJ8aB/jvL+Rt XyEKYEJVV0HU3fp5SWZ0ghk2b42k7SDFLaAftmpaMpZUxP8eQFiXWLrJPp3UBd+5/HQg dcfwsrHN9S4Z+pmFa+WBBDRdm4BEuL5Txvy9p1FyUQoQe6C2b2wwXSpZgQNxLE0Jnk8e JPAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="l/hORE3X"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si10228478edk.240.2020.09.07.05.30.47; Mon, 07 Sep 2020 05:31:10 -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=@kernel.org header.s=default header.b="l/hORE3X"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729079AbgIGM34 (ORCPT + 99 others); Mon, 7 Sep 2020 08:29:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:41422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729242AbgIGMWa (ORCPT ); Mon, 7 Sep 2020 08:22:30 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B031021707; Mon, 7 Sep 2020 12:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599481344; bh=hO9ipewOxdkfWfb7kBKgMdC6UCFJZgkb2q8sjiDbxKs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l/hORE3XgUiGv7oUQ/2rhFBTipX8xL/hiFkh+K4uXwDOgiroiPLlfnOeZmJSKYBd3 il7GsuOBmOQ9DpO5j+Qx/Js4rtSWIisIORjqkNhjxRSiBRZsKkOqOqEl1h2lyPtb8l 3q0RePLQmgUeG0HyXdgOrYFisTVJC5qD1y+h1Syc= Date: Mon, 7 Sep 2020 14:22:38 +0200 From: Greg Kroah-Hartman To: Bartosz Golaszewski Cc: Andy Shevchenko , Randy Dunlap , Bartosz Golaszewski , Linus Walleij , Jonathan Corbet , Mika Westerberg , Kent Gibson , linux-gpio , linux-doc , LKML , ACPI Devel Maling List Subject: Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup Message-ID: <20200907122238.GA1849893@kroah.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> <20200907115310.GA1891694@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 02:06:15PM +0200, Bartosz Golaszewski wrote: > 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? Yes it is. Or at least until you fix all existing users so that if you do change it, no one notices it happening :) thanks, greg k-h