Skip to content

Commit ccdd4aa

Browse files
mgrzeschikgregkh
authored andcommitted
usb: phy-generic: add short delay after pulling the reset pin
After pulling the reset pin some phys are not immediately ready. We add a short delay of at least 10 ms to ensure that the phy can be properly used. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20240402-phy-misc-v1-1-de5c17f93f17@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3295f1b commit ccdd4aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/phy/phy-generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static void nop_reset(struct usb_phy_generic *nop)
7171
gpiod_set_value_cansleep(nop->gpiod_reset, 1);
7272
usleep_range(10000, 20000);
7373
gpiod_set_value_cansleep(nop->gpiod_reset, 0);
74+
usleep_range(10000, 30000);
7475
}
7576

7677
/* interface to regulator framework */

0 commit comments

Comments
 (0)