osd: fix reboot quiescent caused screen blank issue [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 28 Nov 2019 10:53:26 +0000 (18:53 +0800)
committerPengcheng Chen <pengcheng.chen@amlogic.com>
Fri, 29 Nov 2019 03:06:05 +0000 (11:06 +0800)
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 <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index c9aed1c9c66aea3b241c7f03995ef75b6cd340ef..3865b7d107761e8d972ee4f1f07a7db6199555c2 100644 (file)
@@ -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");