]> git.sur5r.net Git - u-boot/commit
usb: legacy_hub_port_reset(): Speedup hub reset handling
authorStefan Roese <sr@denx.de>
Tue, 15 Mar 2016 12:59:12 +0000 (13:59 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 20 Mar 2016 17:00:44 +0000 (18:00 +0100)
commitf7f601002d26cd5afc2241728a1e4d6106044184
tree1154edd03797d2d2f3f70be1fede500a81ff5118
parente4fb863f6dec0002069d57422ebe3ce3af69a273
usb: legacy_hub_port_reset(): Speedup hub reset handling

Start with a short USB hub reset delay of 20ms. This can be enough for
some configurations.

The 2nd delay at the end of the loop is completely removed. Since the
delay hasn't been long enough, a longer delay time of 200ms is assigned
and will be used in the next loop round.

This hub reset handling is also used in the v4.4 Linux USB driver,
hub_port_reset().

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Cc: Marek Vasut <marex@denx.de>
common/usb_hub.c