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.

Change-Id: Ib1426c7c9a21c37758d7352740938627d4613fd6
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
This commit is contained in:
Siddhartha Agrawal
2012-11-26 15:57:42 -08:00
committed by Stephen Boyd
parent facd0f5012
commit a16456fc2b
4 changed files with 4 additions and 4 deletions

View File

@@ -673,7 +673,7 @@ ssize_t mdp4_dsi_cmd_show_event(struct device *dev,
msecs_to_jiffies(VSYNC_PERIOD * 4));
if (ret <= 0) {
vctrl->wait_vsync_cnt = 0;
return -EBUSY;
vctrl->vsync_time = ktime_get();
}
spin_lock_irqsave(&vctrl->spin_lock, flags);

View File

@@ -399,7 +399,7 @@ ssize_t mdp4_dsi_video_show_event(struct device *dev,
msecs_to_jiffies(VSYNC_PERIOD * 4));
if (ret <= 0) {
vctrl->wait_vsync_cnt = 0;
return -EBUSY;
vctrl->vsync_time = ktime_get();
}
spin_lock_irqsave(&vctrl->spin_lock, flags);

View File

@@ -342,7 +342,7 @@ ssize_t mdp4_dtv_show_event(struct device *dev,
msecs_to_jiffies(VSYNC_PERIOD * 4));
if (ret <= 0) {
vctrl->wait_vsync_cnt = 0;
return -EBUSY;
vctrl->vsync_time = ktime_get();
}
spin_lock_irqsave(&vctrl->spin_lock, flags);

View File

@@ -384,7 +384,7 @@ ssize_t mdp4_lcdc_show_event(struct device *dev,
msecs_to_jiffies(VSYNC_PERIOD * 4));
if (ret <= 0) {
vctrl->wait_vsync_cnt = 0;
return -EBUSY;
vctrl->vsync_time = ktime_get();
}
spin_lock_irqsave(&vctrl->spin_lock, flags);