Revert "msm_fb: display: wait4vsync after turned off timing generator"

This reverts commit 8e63d31ef6d1e446826bbf26fe58883448ba7c18.

Change-Id: I490c6667807b23c59d1903c93f765e287a9c0632
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Revert "msm_fb: display: enable timing generator at resume"

This reverts commit c2128bcc7d7aa186963bd62042520c318513b161.

Change-Id: I964fe92de3d7a9c736316b374872f0bd0970c67d
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm_fb : Add timeout while waiting for vsync event

Avoid eternal wait for vsync event when client tries to
read the corresponding sysfs entry. This will avoid hangs when
client tries to read in corner cases where the Timing
Generator or the clock or IRQ gets disabled.

CRs-fixed: 406752
Change-Id: I773687220b868823a9e4bfdae74361ee6487c5c6
Signed-off-by: Pradeep Jilagam <pjilagam@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
(cherry picked from commit ca24bda0148887716f250bbbc5debb2f80fa4331)

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_dtv.c
	drivers/video/msm/mdp4_overlay_lcdc.c

Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm_fb: display: Send current timestamp in case of timeout

On timeout while waiting for the vsync, send the current
timestamp to the userspace. This resolves the infinite
wait seen during the bootup as SF will use this time stamp
reconfigure the vsync.

CRs-Fixed: 420244
Change-Id: I0d7b8750becfbb4e5c5e47b29ded6395627e8862
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
(cherry picked from commit 5e4ba471fa7b26de394c3836b309c20c4082c19a)

Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>