From 7ab41c552c614437600f5950c30286d74ba1a714 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 88c53af454ff..f1dc6566f677 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -10242,6 +10242,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