]> git.sur5r.net Git - u-boot/commit
dm: usb: Do not scan companion buses if no devices where handed over
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2015 12:10:21 +0000 (14:10 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 00:49:31 +0000 (18:49 -0600)
commite253637be72c3a50ce6ba5992170b7a4b0a6f046
treef36301390e9ecae74e9c96e1f5d3ab04e182cd3b
parentb6de4d1093d3a30413da14c26767a9b0379924dc
dm: usb: Do not scan companion buses if no devices where handed over

USB scanning is slow, and there is no need to scan the companion buses
if no usb devices where handed over to the companinon controllers by any
of the main controllers.

This saves e.g. 2 seconds when booting a A10 OLinuxIno Lime with no USB-1
devices plugged into the root usb ports.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c