mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
disp: msm: sde: update wr_ptr_success state post wait
Update the wr_ptr_success state to avoid waiting for two frames pp_done_tx_irq. It ensures frame done callback is triggered, if IRQ's are disabled for long time by some external entity. Change-Id: I9ee72bd65dd7251bf8db0b6843fad02b675935bc Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
This commit is contained in:
parent
4fbdc64598
commit
97f10bf143
1 changed files with 3 additions and 0 deletions
|
|
@ -1409,6 +1409,8 @@ static bool _sde_encoder_phys_cmd_needs_vsync_change(
|
|||
static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
|
||||
struct sde_encoder_phys *phys_enc)
|
||||
{
|
||||
struct sde_encoder_phys_cmd *cmd_enc =
|
||||
to_sde_encoder_phys_cmd(phys_enc);
|
||||
struct sde_encoder_wait_info wait_info = {0};
|
||||
int ret;
|
||||
bool frame_pending = true;
|
||||
|
|
@ -1439,6 +1441,7 @@ static int _sde_encoder_phys_cmd_wait_for_wr_ptr(
|
|||
ret = frame_pending ? ret : 0;
|
||||
}
|
||||
|
||||
cmd_enc->wr_ptr_wait_success = (ret == 0) ? true : false;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue