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:
committed by
Stephen Boyd
parent
facd0f5012
commit
a16456fc2b
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user