summaryrefslogtreecommitdiff
path: root/include/usb.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-10 14:10:20 +0200
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:31 -0600
commitb6de4d1093d3a30413da14c26767a9b0379924dc (patch)
tree9598966c89b00de6fd334e94a78de69853518c13 /include/usb.h
parenta24a0e91590bb7452ddf531b9ae0e93216bd1237 (diff)
downloadu-boot-imx-b6de4d1093d3a30413da14c26767a9b0379924dc.zip
u-boot-imx-b6de4d1093d3a30413da14c26767a9b0379924dc.tar.gz
u-boot-imx-b6de4d1093d3a30413da14c26767a9b0379924dc.tar.bz2
dm: usb: Add support for companion controllers
USB companion controllers must be scanned after the main controller has been scanned, so that any devices which the main controller which to hand over to the companion have actually been handed over before we scan the companion. As there are no guarantees that this will magically happen in the right order, split the scanning of the buses in 2 phases, first main controllers, and then companion controllers. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usb.h')
-rw-r--r--include/usb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h
index 609b13d..5043bc3 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -608,10 +608,13 @@ struct usb_dev_platdata {
* @desc_before_addr: true if we can read a device descriptor before it
* has been assigned an address. For XHCI this is not possible
* so this will be false.
+ * @companion: True if this is a companion controller to another USB
+ * controller
*/
struct usb_bus_priv {
int next_addr;
bool desc_before_addr;
+ bool companion;
};
/**