media: rockchip: isp: fix the problem of no data when no reserved memory

Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
Change-Id: Ia94a8032fae6c741376924c98dae336e4a9329bd
This commit is contained in:
Fenrir Lin
2021-05-08 09:51:46 +08:00
committed by Tao Huang
parent b818d97299
commit 0bd6f83dfc

View File

@@ -2429,6 +2429,12 @@ void rkisp_chk_tb_over(struct rkisp_device *isp_dev)
if (!isp_dev->resmem_pa || !isp_dev->resmem_size) {
v4l2_info(&isp_dev->v4l2_dev,
"no reserved memory for thunderboot\n");
if (isp_dev->hw_dev->is_thunderboot) {
rkisp_tb_set_state(RKISP_TB_NG);
rkisp_tb_unprotect_clk();
rkisp_register_irq(isp_dev->hw_dev);
isp_dev->hw_dev->is_thunderboot = false;
}
return;
}