提交 22552b28 编写于 作者: R Robin Getz 提交者: Greg Kroah-Hartman

USB: partial USB embedded host support

This provides better support for USB "Embedded Host" functionality, which
is a subset of the USB OTG options:

 * External hub support can be disabled;

 * USB peripherals not whitelisted in "otg_whitelist.h" will be rejected
   during enumeration.

These options can allow some savings in software and support.
Signed-off-by: NRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b56394bf
...@@ -111,14 +111,16 @@ config USB_OTG ...@@ -111,14 +111,16 @@ config USB_OTG
config USB_OTG_WHITELIST config USB_OTG_WHITELIST
bool "Rely on OTG Targeted Peripherals List" bool "Rely on OTG Targeted Peripherals List"
depends on USB_OTG depends on USB_OTG || EMBEDDED
default y default y if USB_OTG
default n if EMBEDDED
help help
If you say Y here, the "otg_whitelist.h" file will be used as a 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 product whitelist, so USB peripherals not listed there will be
rejected during enumeration. This behavior is required by the rejected during enumeration. This behavior is required by the
USB OTG specification for all devices not on your product's USB OTG specification for all devices not on your product's
"Targeted Peripherals List". "Targeted Peripherals List". "Embedded Hosts" are likewise
allowed to support only a limited number of peripherals.
Otherwise, peripherals not listed there will only generate a Otherwise, peripherals not listed there will only generate a
warning and enumeration will continue. That's more like what warning and enumeration will continue. That's more like what
...@@ -127,9 +129,10 @@ config USB_OTG_WHITELIST ...@@ -127,9 +129,10 @@ config USB_OTG_WHITELIST
config USB_OTG_BLACKLIST_HUB config USB_OTG_BLACKLIST_HUB
bool "Disable external hubs" bool "Disable external hubs"
depends on USB_OTG depends on USB_OTG || EMBEDDED
help help
If you say Y here, then Linux will refuse to enumerate If you say Y here, then Linux will refuse to enumerate
external hubs. OTG hosts are allowed to reduce hardware external hubs. OTG hosts are allowed to reduce hardware
and software costs by not supporting external hubs. and software costs by not supporting external hubs. So
are "Emedded Hosts" that don't offer OTG support.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册