From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED39CC678D5 for ; Tue, 7 Mar 2023 15:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjCGPAf (ORCPT ); Tue, 7 Mar 2023 10:00:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbjCGPAJ (ORCPT ); Tue, 7 Mar 2023 10:00:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A992F8C50B; Tue, 7 Mar 2023 06:46:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 410C760FD1; Tue, 7 Mar 2023 14:46:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C655C433EF; Tue, 7 Mar 2023 14:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678200410; bh=DN1W8oMPd9PdDeMPD2DYrL5vRQksYBzKs3O+zyH0ccQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ld2jFffGowYJ4d/j3ZmWfnhWzQxHoCwGwF6DbRv5DdjDs4cfRzccq8+gV4PNYlyxx 9XpQ1hPVBcGLiWmc3ISCHi/vJ6B3IYwyL0C1+JTs5vvtG0fCkzGa/WWatjh+0NZkvY n7aF3aG74zH76W4mQoyfq87cuw0g8SwLOj7nxQj8= Date: Tue, 7 Mar 2023 15:46:42 +0100 From: Greg KH To: Linus Walleij Cc: Biju Das , linux-gpio@vger.kernel.org, Geert Uytterhoeven , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v6 03/13] pinctrl: Add sysfs support Message-ID: References: <20230306090014.128732-1-biju.das.jz@bp.renesas.com> <20230306090014.128732-4-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Mar 07, 2023 at 02:41:16PM +0100, Linus Walleij wrote: > On Mon, Mar 6, 2023 at 10:00 AM Biju Das wrote: > > > Add a simple sysfs interface to the generic pinctrl framework > > for configuring pins for output disable operation. > > > > /sys/class/pinctrl/ > > `-- output-disable/ > > |-- configure (w/o) ask the kernel to configure a pin group > > for output disable operation. > > > > echo "" > configure > > > > The existing "pinmux-functions" debugfs file lists the pin functions > > registered for the pin controller. For example: > > > > function 0: usb0, groups = [ usb0 ] > > function 1: usb1, groups = [ usb1 ] > > function 2: gpt4-pins, groups = [ gpt4-pins ] > > function 3: scif0, groups = [ scif0 ] > > function 4: scif2, groups = [ scif2 ] > > function 5: spi1, groups = [ spi1 ] > > > > To configure gpt4-pins for output disable activation by user: > > > > echo "gpt4-pins gpt4-pins 0 1" > configure That is not what sysfs is for (multiple values per file.) Why not use configfs for this as that is exactly what this is designed for? thanks, greg k-h