disp: msm: sde: fix polling logic while enabling the timing engine
This change fixes the 'commit 92cbd6d654
("disp: msm: sde: while
timing engine enabling poll for active region")' which introduces
one frame time delay during enabling the timing engine.
Change-Id: Ibe71eb785822381fd23e74f4d55dbd141024d520
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
Dieser Commit ist enthalten in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -1232,7 +1232,7 @@ static int sde_encoder_phys_vid_poll_for_active_region(struct sde_encoder_phys *
|
||||
usleep_range(poll_time_us, poll_time_us + 5);
|
||||
line_cnt = phys_enc->hw_intf->ops.get_line_count(phys_enc->hw_intf);
|
||||
trial++;
|
||||
} while ((trial < MAX_POLL_CNT) || (line_cnt < v_inactive));
|
||||
} while ((trial < MAX_POLL_CNT) && (line_cnt < v_inactive));
|
||||
|
||||
return (trial >= MAX_POLL_CNT) ? -ETIMEDOUT : 0;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren