MLK-18844: drm: imx: dcss: lower mode change time
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Tue, 10 Jul 2018 05:24:27 +0000 (08:24 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit21ab481d8a9069554e2eead0f05cbbe7f79d3d8e
tree09d09be86075aaab38328763535aabeb6d0f8cea
parent55de74cb3b56abd3c3975de7233da05292b3e3b0
MLK-18844: drm: imx: dcss: lower mode change time

Currently, there's a hardcoded wait time (500ms) after enabling DTG
clocks. This is supposed to avoid VBLANK timeout warning messages.
However, this time is quite big. This patch changes this by lowering this
time as much as possible, with the use of completion events. After
enabling CRTC we just block until the first VBLANK interrupt comes. This
way, we know for sure that we'll never get a VBLANK timeout.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c
drivers/gpu/imx/dcss/dcss-dtg.c