mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
disp: msm: dsi: avoid TE status check based on rechecks count
The rechecks count in dsi_display_status_check_te defines the number of times the TE status needs to be checked before exiting. Avoid the execution if rechecks is set to zero as it would avoid unnecessary irq status changes. Change-Id: Ice31701ac06f5b0a82f29b5f415dcb0b055e7b16 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
parent
643e9c2d80
commit
db67b18a28
1 changed files with 3 additions and 0 deletions
|
|
@ -800,6 +800,9 @@ static int dsi_display_status_check_te(struct dsi_display *display,
|
|||
int rc = 1, i = 0;
|
||||
int const esd_te_timeout = msecs_to_jiffies(3*20);
|
||||
|
||||
if (!rechecks)
|
||||
return rc;
|
||||
|
||||
dsi_display_change_te_irq_status(display, true);
|
||||
|
||||
for (i = 0; i < rechecks; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue