linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Revert "usb: gadget: allow to enable legacy drivers without USB_ETH"
@ 2017-12-12 10:49 Felipe Balbi
  0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2017-12-12 10:49 UTC (permalink / raw)
  To: Bart Van Assche, Greg Kroah-Hartman
  Cc: linux-usb, Romain Izard, Arnd Bergmann, Stephen Rothwell,
	Masahiro Yamada, Hannes Reinecke, Nicholas Bellinger,
	Andrzej Pietrasiewicz

Hi again,

Felipe Balbi <felipe.balbi@linux.intel.com> writes:
> Bart Van Assche <bart.vanassche@wdc.com> writes:
>> Romain Izard reported the following about commit 7a9618a22aad:
>>
>>     As it reached Linus' tree with v4.15-rc3, I recently noticed the
>>     following commit that triggered a Kconfig request. I believe that this
>>     change does not make sense.
>>
>>     7a9618a22aa usb: gadget: allow to enable legacy drivers without USB_ETH
>>
>>     USB_ETH was not a dependency, but a default value for the choice. As the
>>     choice was marked as "optional", it was possible to remove this value
>>     when building.
>>
>>     After this modification, the Kconfig choice option does not contain
>>     anything anymore, so it is useless.  It is also possible to select
>>     multiple built-in legacy drivers. This builds, but will not work as
>>     expected as only one legacy driver can be bound to an USB device
>>     controller at a time.
>>
>> Hence revert commit 7a9618a22aad.
>>
>> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
>> Cc: Romain Izard <romain.izard.pro@gmail.com>
>> Cc: Arnd Bergmann <arnd@arndb.de>
>> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
>> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
>> Cc: Hannes Reinecke <hare@suse.com>
>> Cc: Nicholas Bellinger <nab@linux-iscsi.org>
>> Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
>> Cc: linux-usb@vger.kernel.org
>> Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
>
> this doesn't apply at all. Patch is not properly formatted.

I'll revert the commit manually just to get this fixed upstream.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Revert "usb: gadget: allow to enable legacy drivers without USB_ETH"
@ 2017-12-12 10:45 Felipe Balbi
  0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2017-12-12 10:45 UTC (permalink / raw)
  To: Bart Van Assche, Greg Kroah-Hartman
  Cc: linux-usb, Romain Izard, Arnd Bergmann, Stephen Rothwell,
	Masahiro Yamada, Hannes Reinecke, Nicholas Bellinger,
	Andrzej Pietrasiewicz

Hi,

Bart Van Assche <bart.vanassche@wdc.com> writes:
> Romain Izard reported the following about commit 7a9618a22aad:
>
>     As it reached Linus' tree with v4.15-rc3, I recently noticed the
>     following commit that triggered a Kconfig request. I believe that this
>     change does not make sense.
>
>     7a9618a22aa usb: gadget: allow to enable legacy drivers without USB_ETH
>
>     USB_ETH was not a dependency, but a default value for the choice. As the
>     choice was marked as "optional", it was possible to remove this value
>     when building.
>
>     After this modification, the Kconfig choice option does not contain
>     anything anymore, so it is useless.  It is also possible to select
>     multiple built-in legacy drivers. This builds, but will not work as
>     expected as only one legacy driver can be bound to an USB device
>     controller at a time.
>
> Hence revert commit 7a9618a22aad.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Cc: Romain Izard <romain.izard.pro@gmail.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Nicholas Bellinger <nab@linux-iscsi.org>
> Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
> Cc: linux-usb@vger.kernel.org
> Cc: Felipe Balbi <felipe.balbi@linux.intel.com>

this doesn't apply at all. Patch is not properly formatted.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Revert "usb: gadget: allow to enable legacy drivers without USB_ETH"
@ 2017-12-11 16:51 Arnd Bergmann
  0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-12-11 16:51 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Greg Kroah-Hartman, linux-usb, Romain Izard, Stephen Rothwell,
	Masahiro Yamada, Hannes Reinecke, Nicholas Bellinger,
	Andrzej Pietrasiewicz, Felipe Balbi

On Mon, Dec 11, 2017 at 5:45 PM, Bart Van Assche <bart.vanassche@wdc.com> wrote:
> Romain Izard reported the following about commit 7a9618a22aad:
>
>     As it reached Linus' tree with v4.15-rc3, I recently noticed the
>     following commit that triggered a Kconfig request. I believe that this
>     change does not make sense.
>
>     7a9618a22aa usb: gadget: allow to enable legacy drivers without USB_ETH
>
>     USB_ETH was not a dependency, but a default value for the choice. As the
>     choice was marked as "optional", it was possible to remove this value
>     when building.
>
>     After this modification, the Kconfig choice option does not contain
>     anything anymore, so it is useless.  It is also possible to select
>     multiple built-in legacy drivers. This builds, but will not work as
>     expected as only one legacy driver can be bound to an USB device
>     controller at a time.
>
> Hence revert commit 7a9618a22aad.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Cc: Romain Izard <romain.izard.pro@gmail.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Nicholas Bellinger <nab@linux-iscsi.org>
> Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
> Cc: linux-usb@vger.kernel.org
> Cc: Felipe Balbi <felipe.balbi@linux.intel.com>

Ok, let's use this one instead of my patch then,

Acked-by: Arnd Bergmann <arnd@arndb.de>
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Revert "usb: gadget: allow to enable legacy drivers without USB_ETH"
@ 2017-12-11 16:45 Bart Van Assche
  0 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2017-12-11 16:45 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-usb, Bart Van Assche, Romain Izard, Arnd Bergmann,
	Stephen Rothwell, Masahiro Yamada, Hannes Reinecke,
	Nicholas Bellinger, Andrzej Pietrasiewicz, Felipe Balbi

Romain Izard reported the following about commit 7a9618a22aad:

    As it reached Linus' tree with v4.15-rc3, I recently noticed the
    following commit that triggered a Kconfig request. I believe that this
    change does not make sense.

    7a9618a22aa usb: gadget: allow to enable legacy drivers without USB_ETH

    USB_ETH was not a dependency, but a default value for the choice. As the
    choice was marked as "optional", it was possible to remove this value
    when building.

    After this modification, the Kconfig choice option does not contain
    anything anymore, so it is useless.  It is also possible to select
    multiple built-in legacy drivers. This builds, but will not work as
    expected as only one legacy driver can be bound to an USB device
    controller at a time.

Hence revert commit 7a9618a22aad.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Romain Izard <romain.izard.pro@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Cc: linux-usb@vger.kernel.org
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>

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
:
---
 drivers/usb/gadget/Kconfig        |  4 ++--
 drivers/usb/gadget/legacy/Kconfig | 10 ----------
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 0a19a76645ad..31cce7805eb2 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.
 
-endchoice
-
 source "drivers/usb/gadget/legacy/Kconfig"
 
+endchoice
+
 endif # USB_GADGET
diff --git a/drivers/usb/gadget/legacy/Kconfig b/drivers/usb/gadget/legacy/Kconfig
index 9570bbeced4f..a12fb459dbd9 100644
--- a/drivers/usb/gadget/legacy/Kconfig
+++ b/drivers/usb/gadget/legacy/Kconfig
@@ -13,14 +13,6 @@
 # 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
@@ -498,5 +490,3 @@ config USB_G_WEBCAM
 
 	  Say "y" to link the driver statically, or "m" to build a
 	  dynamically linked module called "g_webcam".
-
-endif

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

end of thread, other threads:[~2017-12-12 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-12 10:49 Revert "usb: gadget: allow to enable legacy drivers without USB_ETH" Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2017-12-12 10:45 Felipe Balbi
2017-12-11 16:51 Arnd Bergmann
2017-12-11 16:45 Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).