diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2024-04-02 08:17:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-09 17:37:35 +0200 |
commit | ccdd4aac5f4b1e735c4372d2f12884a3ff0eb524 (patch) | |
tree | 242487002a89cbc5c77fa4b8b41fb7ca071dd543 /drivers/usb/phy/phy-generic.c | |
parent | usb: misc: uss720: check for incompatible versions of the Belkin F5U002 (diff) | |
download | linux-ccdd4aac5f4b1e735c4372d2f12884a3ff0eb524.tar.xz linux-ccdd4aac5f4b1e735c4372d2f12884a3ff0eb524.zip |
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>
Diffstat (limited to 'drivers/usb/phy/phy-generic.c')
-rw-r--r-- | drivers/usb/phy/phy-generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index fdcffebf415c..e7d50e0a1612 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -71,6 +71,7 @@ static void nop_reset(struct usb_phy_generic *nop) gpiod_set_value_cansleep(nop->gpiod_reset, 1); usleep_range(10000, 20000); gpiod_set_value_cansleep(nop->gpiod_reset, 0); + usleep_range(10000, 30000); } /* interface to regulator framework */ |