drm/exynos: use wait_event_timeout() for safety usage
authorYoungJun Cho <yj44.cho@samsung.com>
Wed, 18 Jun 2014 09:14:00 +0000 (18:14 +0900)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:16:08 +0000 (15:16 +0900)
commitc486a8a9773456400ad8ea95486d17fca78ddbd0
tree4a4d080f9eae0dd75bfc8ab66865e1770159183b
parent648b4baa6695a17b8733725809ca6081aa123627
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.

Change-Id: Ib110ff1d6089394da37ba5a8375a4efdd6128672
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