public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] : Allow embedded developers USB options normally reserved for OTG
@ 2008-01-02 14:48 Robin Getz
  2008-01-02 18:47 ` [linux-usb-devel] " David Brownell
  0 siblings, 1 reply; 21+ messages in thread
From: Robin Getz @ 2008-01-02 14:48 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, linux-usb-devel

From: Robin Getz <rgetz@blackfin.uclinux.org>

Allow embedded developers to turn support for USB Hubs off even if they have a 
full root hub. This saves the overhead (RAM and Flash size).

Allow embedded developers the capabilities of the "otg_whitelist.h" - a 
product whitelist, so USB peripherals not listed there will be rejected 
during enumeration. This is the desired operation for many embedded products.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>

---

 drivers/usb/core/Kconfig |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)


Index: linux-2.6.x/drivers/usb/core/Kconfig
===================================================================
--- linux-2.6.x/drivers/usb/core/Kconfig	(revision 4074)
+++ linux-2.6.x/drivers/usb/core/Kconfig	(working copy)
@@ -95,8 +95,9 @@
 
 config USB_OTG_WHITELIST
 	bool "Rely on OTG Targeted Peripherals List"
-	depends on USB_OTG
-	default y
+	depends on USB_OTG || EMBEDDED
+	default y if USB_OTG
+	default n if EMBEDDED
 	help
 	  If you say Y here, the "otg_whitelist.h" file will be used as a
 	  product whitelist, so USB peripherals not listed there will be
@@ -111,7 +112,7 @@
 
 config USB_OTG_BLACKLIST_HUB
 	bool "Disable external hubs"
-	depends on USB_OTG
+	depends on USB_OTG || EMBEDDED
 	help
 	  If you say Y here, then Linux will refuse to enumerate
 	  external hubs.  OTG hosts are allowed to reduce hardware

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

end of thread, other threads:[~2008-01-04  1:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 14:48 [PATCH] : Allow embedded developers USB options normally reserved for OTG Robin Getz
2008-01-02 18:47 ` [linux-usb-devel] " David Brownell
2008-01-02 18:57   ` Felipe Balbi
2008-01-02 19:14     ` David Brownell
2008-01-02 18:58   ` Mike Frysinger
2008-01-02 19:16     ` David Brownell
2008-01-02 19:46     ` Alan Stern
2008-01-02 20:25       ` David Brownell
2008-01-02 20:58         ` Alan Stern
2008-01-03  3:50           ` David Brownell
2008-01-03  3:52           ` Bryan Wu
2008-01-03 17:01           ` Richard D
2008-01-03  3:03   ` Robin Getz
2008-01-03  3:43     ` David Brownell
2008-01-03  4:40       ` Bryan Wu
2008-01-03  7:36         ` David Brownell
2008-01-03  8:05           ` Bryan Wu
2008-01-03 17:04             ` Richard D
2008-01-04  1:20               ` Robin Getz
2008-01-03  7:58       ` Robin Getz
2008-01-03  3:47   ` Bryan Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox