Skip to content
Commit f7f60100 authored by Stefan Roese's avatar Stefan Roese Committed by Marek Vasut
Browse files

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: default avatarStefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Cc: Marek Vasut <marex@denx.de>
parent e4fb863f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment