]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: core: TPL should apply for both OTG and EH
authorPeter Chen <peter.chen@freescale.com>
Tue, 19 Aug 2014 01:51:53 +0000 (09:51 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:12 +0000 (21:18 -0600)
commita8215d43e998ccf3d964fba9d0ef32f941422617
treebd9b303e6e56ef95b0bdcd42077997307c1f7102
parentac265eab588bbee8f8280d1d9e0193d878ac5e2b
usb: core: TPL should apply for both OTG and EH

According to On-The-Go and Embedded Host Supplement to the USB Revision
2.0 Specification, the targeted hosts (non-PC hosts) include both
embedded hosts and otg, and each targeted host product defines the
set of supported peripherals on a TPL (Targeted Peripheral List). So,
TPL should apply for both OTG and embedded host, and the otg support is
not a must for embedded host.

The TPL support feature will only be effect when CONFIG_USB_OTG_WHITELIST
has been chosen and hcd->tpl_support flag is set, it can avoid the enumeration
fails problem for the user who chooses CONFIG_USB_OTG_WHITELIST wrongly.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/otg_whitelist.h