dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: bridge: tc358767: increase PLL lock time delay
@ 2023-06-02 19:15 Lucas Stach
  2023-06-02 19:15 ` [PATCH 2/2] drm: bridge: tc358767: give VSDELAY some positive value Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Lucas Stach @ 2023-06-02 19:15 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss
  Cc: Marek Vasut, Jernej Skrabec, Jonas Karlman, dri-devel,
	patchwork-lst, Laurent Pinchart, kernel

From: David Jander <david@protonic.nl>

The PLL often fails to lock with this delay. The new value was
determined by trial and error increasing the delay bit by bit
until the error did not occurr anymore even after several tries.
Then double that value was taken as the minimum delay to be safe.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpu/drm/bridge/tc358767.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c
index 91f7cb56a654..46916ae30f8f 100644
--- a/drivers/gpu/drm/bridge/tc358767.c
+++ b/drivers/gpu/drm/bridge/tc358767.c
@@ -501,7 +501,7 @@ static int tc_pllupdate(struct tc_data *tc, unsigned int pllctrl)
 		return ret;
 
 	/* Wait for PLL to lock: up to 2.09 ms, depending on refclk */
-	usleep_range(3000, 6000);
+	usleep_range(15000, 20000);
 
 	return 0;
 }
-- 
2.39.2


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

end of thread, other threads:[~2023-07-08 19:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-02 19:15 [PATCH 1/2] drm: bridge: tc358767: increase PLL lock time delay Lucas Stach
2023-06-02 19:15 ` [PATCH 2/2] drm: bridge: tc358767: give VSDELAY some positive value Lucas Stach
2023-06-02 21:34   ` Marek Vasut
2023-06-07 12:53     ` Lucas Stach
2023-06-07 13:54       ` Marek Vasut
2023-06-08  8:11         ` Lucas Stach
2023-07-08 19:01           ` Marek Vasut
2023-06-02 21:31 ` [PATCH 1/2] drm: bridge: tc358767: increase PLL lock time delay Marek Vasut
2023-07-08 19:02 ` Marek Vasut

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).