[PATCH 2/2] drm/etnaviv: remove unnecessary clock stabilization delay

Philipp Zabel p.zabel at pengutronix.de
Mon Oct 9 10:03:31 UTC 2017


There is no reason to wait for clock stabilization here, as the clock
framework guarantees that PLL clock sources are stable before clk_enable
returns.

Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index 9f7999552cc31..561a955ee4022 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -449,9 +449,6 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
 
 		control = gpu_read(gpu, VIVS_HI_CLOCK_CONTROL);
 
-		/* Wait for stable clock.  Vivante's code waited for 1ms */
-		usleep_range(1000, 10000);
-
 		/* isolate the GPU. */
 		control |= VIVS_HI_CLOCK_CONTROL_ISOLATE_GPU;
 		gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, control);
-- 
2.11.0



More information about the etnaviv mailing list