Commit 06a962fa authored by Julius Werner's avatar Julius Werner Committed by Greg Kroah-Hartman

usb: misc: usb3503: Remove 100ms sleep on reset, conform to data sheet

The usb3503 driver sleeps a flat 100ms when resetting the chip, with a
comment about waiting for the reference clock. This seems to be a
board-specific detail that should not hold up boot across all platforms.
This patch reduces the sleep to the 4ms initialization delay that the
chip itself actually requires (as per its data sheet). If certain boards
require more time to set up the reference clock, they should change this
through local patches or add a proper, configurable synchronization
mechanism.
Signed-off-by: default avatarJulius Werner <jwerner@chromium.org>
Signed-off-by: default avatarDongjin Kim <tobetter@gmail.com>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ccf92c94
...@@ -105,11 +105,9 @@ static int usb3503_reset(int gpio_reset, int state) ...@@ -105,11 +105,9 @@ static int usb3503_reset(int gpio_reset, int state)
if (gpio_is_valid(gpio_reset)) if (gpio_is_valid(gpio_reset))
gpio_set_value(gpio_reset, state); gpio_set_value(gpio_reset, state);
/* Wait RefClk when RESET_N is released, otherwise Hub will /* Wait T_HUBINIT == 4ms for hub logic to stabilize */
* not transition to Hub Communication Stage.
*/
if (state) if (state)
msleep(100); usleep_range(4000, 10000);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment