diff options
author | Weizhung Ding <weizhungding@google.com> | 2023-03-23 14:03:00 +0800 |
---|---|---|
committer | Weizhung Ding <weizhungding@google.com> | 2023-03-23 14:23:06 +0800 |
commit | 6b4f05650d93bafba2ac51255dd3fc7a8505cb00 (patch) | |
tree | 1b857e11eb9b5ef9af2897aca2d10bdf6d295bbb | |
parent | 5435befbd27d983806e48fe386fa224f653b8108 (diff) | |
download | felix-6b4f05650d93bafba2ac51255dd3fc7a8505cb00.tar.gz |
panel: ana6707: fixed 34ms delay when exiting AoD
Display might flash red when exiting AoD without enought delay time,
fixed the delay time as 34ms to avoid this issue
Bug: 271391921
Test: enter/exit AoD
Change-Id: Ic7d4b647812c60a72302968a5d9a0c2dc51a4342
Signed-off-by: Weizhung Ding <weizhungding@google.com>
-rw-r--r-- | display/panel-samsung-ana6707-f10.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/display/panel-samsung-ana6707-f10.c b/display/panel-samsung-ana6707-f10.c index 2148e45..c7456f1 100644 --- a/display/panel-samsung-ana6707-f10.c +++ b/display/panel-samsung-ana6707-f10.c @@ -584,14 +584,11 @@ static void ana6707_f10_change_frequency(struct exynos_panel *ctx, static void ana6707_f10_set_nolp_mode(struct exynos_panel *ctx, const struct exynos_panel_mode *pmode) { - unsigned int vrefresh = drm_mode_vrefresh(&pmode->mode); - u32 delay_us = mult_frac(1000, 1020, vrefresh); - if (!ctx->enabled) return; EXYNOS_DCS_WRITE_TABLE(ctx, display_off); - usleep_range(delay_us, delay_us + 10); + usleep_range(34000, 34010); EXYNOS_DCS_WRITE_TABLE(ctx, unlock_cmd_f0); if (ctx->panel_rev == PANEL_REV_PROTO1) { @@ -606,7 +603,7 @@ static void ana6707_f10_set_nolp_mode(struct exynos_panel *ctx, EXYNOS_DCS_WRITE_TABLE(ctx, update_key); EXYNOS_DCS_WRITE_TABLE(ctx, lock_cmd_f0); ana6707_f10_change_frequency(ctx, pmode, true); - usleep_range(delay_us, delay_us + 10); + usleep_range(34000, 34010); EXYNOS_DCS_WRITE_TABLE(ctx, display_on); dev_info(ctx->dev, "exit LP mode\n"); |