Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53763843 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: check csid power state before enabling sof irq



Prior to enabling sof irq debug logs ensure that the
respective csid resource is not powered down.

Change-Id: I50a33c5224599948a5560601c20575a2ad79b050
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent ab616014
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2804,6 +2804,14 @@ static int cam_ife_csid_sof_irq_debug(
	if (*((uint32_t *)cmd_args) == 1)
		sof_irq_enable = true;

	if (csid_hw->hw_info->hw_state ==
		CAM_HW_STATE_POWER_DOWN) {
		CAM_WARN(CAM_ISP,
			"CSID powered down unable to %s sof irq",
			(sof_irq_enable == true) ? "enable" : "disable");
		return 0;
	}

	if (csid_reg->ipp_reg) {
		val = cam_io_r_mb(soc_info->reg_map[0].mem_base +
			csid_reg->ipp_reg->csid_pxl_irq_mask_addr);