mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
drm/msm/mdp: add timeout for irq wait
Make things recover a bit more gracefully if we get stuck with no vblank irq ever coming. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
93ddb0d3b0
commit
30b6f8f679
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ void mdp_irq_wait(struct mdp_kms *mdp_kms, uint32_t irqmask)
|
|||
.count = 1,
|
||||
};
|
||||
mdp_irq_register(mdp_kms, &wait.irq);
|
||||
wait_event(wait_event, (wait.count <= 0));
|
||||
wait_event_timeout(wait_event, (wait.count <= 0),
|
||||
msecs_to_jiffies(100));
|
||||
mdp_irq_unregister(mdp_kms, &wait.irq);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue