drm/etnaviv: reduce reset delay
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Oct 2017 10:03:30 +0000 (12:03 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 10:09:34 +0000 (12:09 +0200)
commit4046217954d4e79d57d34c56ce42dec4f87e2ce9
treec20b4b7d0a6579e2f9fcd7a46b0a7b29f44fedf0
parent13cde9f4c62accdb35f769501ae951ecd75cccc9
drm/etnaviv: reduce reset delay

After reset assertion, we only have to wait for the reset signals to
propagate through the GPU before deasserting the reset again. A few
hundred clock cycles should be more than enough. Replace the msleep(1),
which can actually take about 30 ms on i.MX6Q in some configurations,
with an usleep_range of a few microseconds. If the delay was too short,
the FE would not be idle afterwards, and the reset would be retried.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c