All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling USB_E
@ 2017-10-31 18:03 Bart Van Assche
  2017-11-02 14:29 ` [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U Hannes Reinecke
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bart Van Assche @ 2017-10-31 18:03 UTC (permalink / raw)
  To: target-devel

Considerable time ago the legacy gadget menu was added inside the
USB_ETH choice. I think this was a mistake and that the legacy
gadget menu should have been added after "endchoice" instead of
before. Hence this patch.

Fixes: commit 8443f2d2b778 ("usb: gadget: Gadget directory cleanup - group legacy gadgets")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: linux-usb@vger.kernel.org
---
 drivers/usb/gadget/Kconfig        |  4 ++--
 drivers/usb/gadget/legacy/Kconfig | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 31cce7805eb2..0a19a76645ad 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -508,8 +508,8 @@ choice
 	  controller, and the relevant drivers for each function declared
 	  by the device.
 
-source "drivers/usb/gadget/legacy/Kconfig"
-
 endchoice
 
+source "drivers/usb/gadget/legacy/Kconfig"
+
 endif # USB_GADGET
diff --git a/drivers/usb/gadget/legacy/Kconfig b/drivers/usb/gadget/legacy/Kconfig
index a12fb459dbd9..9570bbeced4f 100644
--- a/drivers/usb/gadget/legacy/Kconfig
+++ b/drivers/usb/gadget/legacy/Kconfig
@@ -13,6 +13,14 @@
 # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
 #
 
+menuconfig USB_GADGET_LEGACY
+	bool "Legacy USB Gadget Support"
+	help
+	   Legacy USB gadgets are USB gadgets that do not use the USB gadget
+	   configfs interface.
+
+if USB_GADGET_LEGACY
+
 config USB_ZERO
 	tristate "Gadget Zero (DEVELOPMENT)"
 	select USB_LIBCOMPOSITE
@@ -490,3 +498,5 @@ config USB_G_WEBCAM
 
 	  Say "y" to link the driver statically, or "m" to build a
 	  dynamically linked module called "g_webcam".
+
+endif
-- 
2.14.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U
  2017-10-31 18:03 [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling USB_E Bart Van Assche
@ 2017-11-02 14:29 ` Hannes Reinecke
  2017-11-23  0:14 ` Bart Van Assche
  2017-11-23  8:33 ` Felipe Balbi
  2 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2017-11-02 14:29 UTC (permalink / raw)
  To: target-devel

On 10/31/2017 07:03 PM, Bart Van Assche wrote:
> Considerable time ago the legacy gadget menu was added inside the
> USB_ETH choice. I think this was a mistake and that the legacy
> gadget menu should have been added after "endchoice" instead of
> before. Hence this patch.
> 
> Fixes: commit 8443f2d2b778 ("usb: gadget: Gadget directory cleanup - group legacy gadgets")
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Cc: Nicholas Bellinger <nab@linux-iscsi.org>
> Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
> Cc: Felipe Balbi <balbi@ti.com>
> Cc: linux-usb@vger.kernel.org
> ---
>  drivers/usb/gadget/Kconfig        |  4 ++--
>  drivers/usb/gadget/legacy/Kconfig | 10 ++++++++++
>  2 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 31cce7805eb2..0a19a76645ad 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -508,8 +508,8 @@ choice
>  	  controller, and the relevant drivers for each function declared
>  	  by the device.
>  
> -source "drivers/usb/gadget/legacy/Kconfig"
> -
>  endchoice
>  
> +source "drivers/usb/gadget/legacy/Kconfig"
> +
>  endif # USB_GADGET
> diff --git a/drivers/usb/gadget/legacy/Kconfig b/drivers/usb/gadget/legacy/Kconfig
> index a12fb459dbd9..9570bbeced4f 100644
> --- a/drivers/usb/gadget/legacy/Kconfig
> +++ b/drivers/usb/gadget/legacy/Kconfig
> @@ -13,6 +13,14 @@
>  # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
>  #
>  
> +menuconfig USB_GADGET_LEGACY
> +	bool "Legacy USB Gadget Support"
> +	help
> +	   Legacy USB gadgets are USB gadgets that do not use the USB gadget
> +	   configfs interface.
> +
> +if USB_GADGET_LEGACY
> +
>  config USB_ZERO
>  	tristate "Gadget Zero (DEVELOPMENT)"
>  	select USB_LIBCOMPOSITE
> @@ -490,3 +498,5 @@ config USB_G_WEBCAM
>  
>  	  Say "y" to link the driver statically, or "m" to build a
>  	  dynamically linked module called "g_webcam".
> +
> +endif
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes

-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@suse.com			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U
  2017-10-31 18:03 [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling USB_E Bart Van Assche
  2017-11-02 14:29 ` [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U Hannes Reinecke
@ 2017-11-23  0:14 ` Bart Van Assche
  2017-11-23  8:33 ` Felipe Balbi
  2 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2017-11-23  0:14 UTC (permalink / raw)
  To: target-devel

T24gVHVlLCAyMDE3LTEwLTMxIGF0IDExOjAzIC0wNzAwLCBCYXJ0IFZhbiBBc3NjaGUgd3JvdGU6
DQo+IENvbnNpZGVyYWJsZSB0aW1lIGFnbyB0aGUgbGVnYWN5IGdhZGdldCBtZW51IHdhcyBhZGRl
ZCBpbnNpZGUgdGhlDQo+IFVTQl9FVEggY2hvaWNlLiBJIHRoaW5rIHRoaXMgd2FzIGEgbWlzdGFr
ZSBhbmQgdGhhdCB0aGUgbGVnYWN5DQo+IGdhZGdldCBtZW51IHNob3VsZCBoYXZlIGJlZW4gYWRk
ZWQgYWZ0ZXIgImVuZGNob2ljZSIgaW5zdGVhZCBvZg0KPiBiZWZvcmUuIEhlbmNlIHRoaXMgcGF0
Y2guDQo+IA0KPiBGaXhlczogY29tbWl0IDg0NDNmMmQyYjc3OCAoInVzYjogZ2FkZ2V0OiBHYWRn
ZXQgZGlyZWN0b3J5IGNsZWFudXAgLSBncm91cCBsZWdhY3kgZ2FkZ2V0cyIpDQo+IFNpZ25lZC1v
ZmYtYnk6IEJhcnQgVmFuIEFzc2NoZSA8YmFydC52YW5hc3NjaGVAd2RjLmNvbT4NCj4gQ2M6IE5p
Y2hvbGFzIEJlbGxpbmdlciA8bmFiQGxpbnV4LWlzY3NpLm9yZz4NCj4gQ2M6IEFuZHJ6ZWogUGll
dHJhc2lld2ljeiA8YW5kcnplai5wQHNhbXN1bmcuY29tPg0KPiBDYzogRmVsaXBlIEJhbGJpIDxi
YWxiaUB0aS5jb20+DQo+IENjOiBsaW51eC11c2JAdmdlci5rZXJuZWwub3JnDQoNCkhlbGxvIEFu
ZHJ6ZWogYW5kIEZlbGlwZSwNCg0KQ2FuIG9uZSBvciBib3RoIG9mIHlvdSBoYXZlIGEgbG9vayBh
dCB0aGlzIHBhdGNoPw0KDQpUaGFua3MsDQoNCkJhcnQu

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U
  2017-10-31 18:03 [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling USB_E Bart Van Assche
  2017-11-02 14:29 ` [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U Hannes Reinecke
  2017-11-23  0:14 ` Bart Van Assche
@ 2017-11-23  8:33 ` Felipe Balbi
  2 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2017-11-23  8:33 UTC (permalink / raw)
  To: target-devel

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]


Hi,

Bart Van Assche <Bart.VanAssche@wdc.com> writes:
> On Tue, 2017-10-31 at 11:03 -0700, Bart Van Assche wrote:
>> Considerable time ago the legacy gadget menu was added inside the
>> USB_ETH choice. I think this was a mistake and that the legacy
>> gadget menu should have been added after "endchoice" instead of
>> before. Hence this patch.
>> 
>> Fixes: commit 8443f2d2b778 ("usb: gadget: Gadget directory cleanup - group legacy gadgets")
>> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
>> Cc: Nicholas Bellinger <nab@linux-iscsi.org>
>> Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
>> Cc: Felipe Balbi <balbi@ti.com>
>> Cc: linux-usb@vger.kernel.org
>
> Hello Andrzej and Felipe,
>
> Can one or both of you have a look at this patch?

sure thing, as soon as the merge window closes :-)

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-23  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-31 18:03 [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling USB_E Bart Van Assche
2017-11-02 14:29 ` [PATCH 11/11] usb/gadget: Make it again possible to enable the legacy drivers without enabling U Hannes Reinecke
2017-11-23  0:14 ` Bart Van Assche
2017-11-23  8:33 ` Felipe Balbi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.