disp: msm: sde: update autorefresh disable sequence

Autorefresh might be still in enabled state after
write_ptr reached to display height. This patch
checks the autorefresh status bit and keeps polling
the bit till autorefresh sequence is in enabled
state. It times out after 1 second if autorefresh
is still in enabled state.

Change-Id: I5d4f4cb35e5cc8c680c1878f52cee385f709d764
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel
2020-01-31 14:20:32 -08:00
committato da Gerrit - the friendly Code Review server
parent bf06be4737
commit 1a9e3bae54
4 ha cambiato i file con 165 aggiunte e 31 eliminazioni

Vedi File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/
#ifndef _SDE_HW_TOP_H
@@ -215,6 +215,14 @@ struct sde_hw_mdp_ops {
*/
void (*set_hdr_plus_metadata)(struct sde_hw_mdp *mdp,
u8 *payload, u32 len, u32 stream_id);
/**
* get_autorefresh_status - get autorefresh status
* @mdp: mdp top context driver
* @intf_idx: intf block index for relative information
*/
u32 (*get_autorefresh_status)(struct sde_hw_mdp *mdp,
u32 intf_idx);
};
struct sde_hw_mdp {