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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7081AC43141 for ; Thu, 14 Nov 2019 15:56:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5470F206F0 for ; Thu, 14 Nov 2019 15:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727016AbfKNP4J (ORCPT ); Thu, 14 Nov 2019 10:56:09 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:55450 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726516AbfKNP4J (ORCPT ); Thu, 14 Nov 2019 10:56:09 -0500 Received: (qmail 1820 invoked by uid 2102); 14 Nov 2019 10:56:07 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Nov 2019 10:56:07 -0500 Date: Thu, 14 Nov 2019 10:56:07 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Andrey Konovalov cc: USB list , LKML , Greg Kroah-Hartman , Jonathan Corbet , Felipe Balbi , Dmitry Vyukov , Alexander Potapenko , Marco Elver Subject: Re: [PATCH 0/1] usb: gadget: add raw-gadget interface In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Nov 2019, Andrey Konovalov wrote: > > > As a general rule, gadget drivers don't go directly in > > > drivers/usb/gadget. raw.c counts as a legacy driver (because it's not > > > written to use the composite gadget framework), so it belongs in > > > drivers/usb/gadget/legacy. That's where the gadgetfs driver lives, for > > > example. > > > > Hi Alan! Sure, I'll move it to legacy/ in v2. Thanks! > > Hi Alan, > > Should I move CONFIG_USB_RAW_GADGET into legacy/Kconfig as well? AFAIU > this makes it impossible to turn on e.g. both GadgetFS and Raw Gadget > at the same time, since they both become options of the same choice. We can probably live with that. Not many people will want to build the Raw Gadget driver, and even fewer will want it together with gadgetfs. But if you want to keep the Kconfig option in the higher-level directory, that's probably okay. Alan Stern