From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 101E81C294 for ; Tue, 16 Jan 2024 15:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 746033 invoked by uid 1000); 16 Jan 2024 10:45:13 -0500 Date: Tue, 16 Jan 2024 10:45:13 -0500 From: Alan Stern To: Dominique Martinet Cc: Michael Grzeschik , Eric Van Hensbergen , Latchesar Ionkov , Christian Schoenebeck , Jonathan Corbet , Greg Kroah-Hartman , v9fs@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 1/3] usb: gadget: function: 9pfs Message-ID: <206e4e7b-0ba4-4177-b04d-cab67c2bba2d@rowland.harvard.edu> References: <20240116-ml-topic-u9p-v1-0-ad8c306f9a4e@pengutronix.de> <20240116-ml-topic-u9p-v1-1-ad8c306f9a4e@pengutronix.de> <4856923e-3ce8-4372-9451-f9c8aa157111@rowland.harvard.edu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jan 16, 2024 at 01:04:08PM +0900, Dominique Martinet wrote: > Alan Stern wrote on Mon, Jan 15, 2024 at 10:17:34PM -0500: > > > diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig > > > index b3592bcb0f966..72cdecaef6aa9 100644 > > > --- a/drivers/usb/gadget/Kconfig > > > +++ b/drivers/usb/gadget/Kconfig > > > @@ -153,6 +153,10 @@ config USB_F_ACM > > > config USB_F_SS_LB > > > tristate > > > > > > +config USB_F_9PFS > > > + tristate > > > + select NET_9P > > > + > > > config USB_U_SERIAL > > > tristate > > > > > > @@ -363,6 +367,13 @@ config USB_CONFIGFS_F_LB_SS > > > test software, like the "usbtest" driver, to put your hardware > > > and its driver through a basic set of functional tests. > > > > > > +config USB_CONFIGFS_F_9PFS > > > + bool "9pfs over usb gadget" > > > + depends on USB_CONFIGFS > > > + select USB_F_9PFS > > > + help > > > + 9pfs support for usb gadget > > > > This may be a dumb question, but what is the purpose of this CONFIG > > symbol? It doesn't get used by any of the patches in this series, as > > far as I can see. > > USB_F_9PFS cannot be selected directly in menuconfig so this allows > configuring the build option -- that appears to be how the other usb > gadgets are configured so I assume it's done that way for consistency > more than out of necessity (I don't see a problem in making the build > system use USB_CONFIGFS_F_9PFS directly, it'd just be different from the > rest) Oh, I see. Patch 2/3 selects USB_F_9PFS directly in legacy/Kconfig without touching USB_CONFIGFS_F_9PFS. Thus they need to be separate symbols. That explains it, thanks. Alan Stern