ソースを参照

msm: camera: icp: Reset secure pil flag after shutdown

Reset the flag post shutdown, instead of resetting it prior
to calling into HYP.

CRs-Fixed: 2841729
Change-Id: If0bed24a22e1084135df81dc5a72b395e92adb2c
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 4 年 前
コミット
5c6e3c3d91
1 ファイル変更1 行追加1 行削除
  1. 1 1
      drivers/cam_icp/icp_hw/lx7_hw/lx7_core.c

+ 1 - 1
drivers/cam_icp/icp_hw/lx7_hw/lx7_core.c

@@ -319,7 +319,6 @@ static void prepare_shutdown(struct cam_hw_info *lx7_info)
 	core_info->fw_params.fw_buf = 0x0;
 	core_info->fw_params.fw_kva_addr = 0x0;
 	core_info->fw_params.fw_buf_len = 0x0;
-	core_info->use_sec_pil = false;
 
 	spin_lock_irqsave(&lx7_info->hw_lock, flags);
 	core_info->irq_cb.data = NULL;
@@ -678,6 +677,7 @@ static int cam_lx7_shutdown(struct cam_hw_info *lx7_info)
 		cam_io_w_mb(0x0, base + ICP_LX7_SYS_CONTROL);
 	}
 
+	core_info->use_sec_pil = false;
 	return rc;
 }