Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3357429ybc; Thu, 14 Nov 2019 07:57:45 -0800 (PST) X-Google-Smtp-Source: APXvYqy9rDOv0Tte+HAqAWJwnALmg/ssQjXoHpwnzHYlBgNM9gYW66H87NMSLtjzfUkoU6g4eHqw X-Received: by 2002:aa7:cd54:: with SMTP id v20mr2024744edw.203.1573747065324; Thu, 14 Nov 2019 07:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573747065; cv=none; d=google.com; s=arc-20160816; b=wN7VEsqnvH/i9iBZzogEuZywNTcNE7aoe4cct9HvKfub3ESTcegdS1G4qEAwMpXoe/ YfStAYmo0A1Fwe/0azJ/Z9F1ykmys8lfh3xxfXrpVSYWtZDN2hxm1a8wL+FP8x8zBY0B 0Z9d8hRlkF5gqNyRZuY1JgRHp34DGk9LqoQcXr847DV5XnWPPxI41DssqyzvgswMOF4u M+0IDJIiImRAqfX6eROCNiYTYvsBd9PWa95Ruw9eqbM9XZaXHGvq0ua5fzsvZwiZfy2X WCT2CgIGuqSECGinMrSXIwQTZ/xhuAeMQTi63vpJvzFXbRWrt6hgH0wHKGwSdXU+QQkw VzXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=hN6dXrRM8K7TtCdgkw5sXM6t8FVlN50egrBFEqlS0IM=; b=M4V+AjOo0nnXXjtX2dujVoHfwDxiXjLkzRK8wAhjNUQmAQ3x/7sh9SES8EKfaiCYJx hp8YAlDMo74mRrXoMSQ11tL4zMKfwW5szonqP1KXXxw7tffs/E+pK2t94sjdBc7O6PxS XLef084pHCj0KampDhIwxPa0Ai/z911c/wQqRqangXno6QyEQljmElhO3M0b/CXdSr4N uD8xJPFTF3oi+aqalw1x1xz2kQdKecJ5v/DpllmBOqZaSgk+3LlrvnXaxlP3N9xkySAE 3aoIlasf/Q+2ToYTeo6G9juw6Vbulj1A/Nar3cGohqCHHRfUfNUyD7x835vdHm1H1FNX szRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si3994105edp.177.2019.11.14.07.57.19; Thu, 14 Nov 2019 07:57:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbfKNP4J (ORCPT + 99 others); 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