linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] usb: chipidea: Reduce ULPI PHY reset pulse to datasheet spec of 1us
@ 2015-06-26 13:47 Mike Looijmans
  2015-06-26 13:47 ` [PATCH 2/2] usb: chipidea: Wait 50 ms before reading ID bit Mike Looijmans
  2015-06-30  2:06 ` [PATCH 1/2] usb: chipidea: Reduce ULPI PHY reset pulse to datasheet spec of 1us Peter Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Looijmans @ 2015-06-26 13:47 UTC (permalink / raw)
  To: lars; +Cc: Peter.Chen, linux-usb, linux-kernel, Mike Looijmans

The datasheet for the 334x PHY mentions that a reset can be performed:
"... by bringing the pin low for a minimum of 1 microsecond and
then high."
A delay of 5ms to implement that seems overly long, so reduce it to
just 1us.
As for the delay after reset, the datasheet only mentioned that the
chip will assert the DIR output. 1ms seems like a safe time to wait
for that to happen, so no change there.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
 drivers/usb/chipidea/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index e970863..c865abe 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -664,7 +664,7 @@ static int ci_hdrc_create_ulpi_phy(struct device *dev, struct ci_hdrc *ci)
 			dev_err(dev, "Failed to request ULPI reset gpio: %d\n", ret);
 			return ret;
 		}
-		msleep(5);
+		udelay(1);
 		gpio_set_value_cansleep(reset_gpio, 1);
 		msleep(1);
 	}
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-06 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 13:47 [PATCH 1/2] usb: chipidea: Reduce ULPI PHY reset pulse to datasheet spec of 1us Mike Looijmans
2015-06-26 13:47 ` [PATCH 2/2] usb: chipidea: Wait 50 ms before reading ID bit Mike Looijmans
2015-06-30  2:11   ` Peter Chen
2015-06-30  2:06 ` [PATCH 1/2] usb: chipidea: Reduce ULPI PHY reset pulse to datasheet spec of 1us Peter Chen
2015-07-02  9:39   ` David Laight
2015-07-06 12:54     ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).