drm/exynos: use wait_event_timeout() for safety usage
authorYoungJun Cho <yj44.cho@samsung.com>
Thu, 17 Jul 2014 09:01:17 +0000 (18:01 +0900)
committerInki Dae <daeinki@gmail.com>
Sun, 3 Aug 2014 07:52:14 +0000 (16:52 +0900)
commite35d7223de18e01df8922676464572db8b1453a1
tree165adb93ff258ad93c98272c2f2a2e71e088b184
parent2f36e33aef211815f172a2310e5759cb0d0843bf
drm/exynos: use wait_event_timeout() for safety usage

There could be the case that the page flip operation isn't finished correctly
with some abnormal condition such as panel reset. So this patch replaces
wait_event() with wait_event_timeout() to avoid waiting for page flip completion
infinitely.
And clears exynos_crtc->pending_flip in exynos_drm_crtc_page_flip()
when exynos_drm_crtc_mode_set_commit() is failed.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c