[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240402-phy-misc-v1-1-de5c17f93f17@pengutronix.de>
Date: Tue, 02 Apr 2024 08:17:17 +0200
From: Michael Grzeschik <m.grzeschik@...gutronix.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Michael Grzeschik <m.grzeschik@...gutronix.de>
Subject: [PATCH] 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@...gutronix.de>
---
drivers/usb/phy/phy-generic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
index fdcffebf415cd..e7d50e0a16123 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 */
---
base-commit: 5bab5dc780c9ed0c69fc2f828015532acf4a7848
change-id: 20240402-phy-misc-e3f056ec3f29
Best regards,
--
Michael Grzeschik <m.grzeschik@...gutronix.de>
Powered by blists - more mailing lists