From e6cdbd544b5ad6fbd6fe0564bd020097a689efb2 Mon Sep 17 00:00:00 2001 From: Pengcheng Chen Date: Thu, 28 Nov 2019 18:53:26 +0800 Subject: [PATCH] osd: fix reboot quiescent caused screen blank issue [1/1] PD#SWPL-17605 Problem: in reboot quiescent, suspend & resume caused afbc_cfg reg set err Solution: in resume, reset afbc_start to 0 Verify: franklin Change-Id: I6e019ee88a3cfeb5d39db4777a7c2ac6c9648b02 Signed-off-by: Pengcheng Chen --- drivers/amlogic/media/osd/osd_hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index c9aed1c9c66a..3865b7d10776 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -10254,6 +10254,8 @@ void osd_resume_hw(void) osd_hw.reg_status_save3); osd_reg_write(VPU_MAFBC_SURFACE_CFG, osd_hw.reg_status_save4); + for (i = 0; i < osd_hw.osd_meson_dev.osd_count; i++) + osd_hw.osd_afbcd[i].afbc_start = 0; spin_unlock_irqrestore(&osd_lock, lock_flags); } osd_log_info("osd_resumed\n"); -- 2.20.1