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

Commit 18cc315c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cdm: Check for HW state before dumping registers" into camera-kernel.lnx.3.1

parents 3e53fc2e 65455a7e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1089,7 +1089,10 @@ static void cam_hw_cdm_iommu_fault_handler(struct iommu_domain *domain,
		mutex_lock(&cdm_hw->hw_mutex);
		for (i = 0; i < core->offsets->reg_data->num_bl_fifo; i++)
			mutex_lock(&core->bl_fifo[i].fifo_lock);
		if (cdm_hw->hw_state == CAM_HW_STATE_POWER_UP)
			cam_hw_cdm_dump_core_debug_registers(cdm_hw);
		else
			CAM_INFO(CAM_CDM, "CDM hw is power in off state");
		for (i = 0; i < core->offsets->reg_data->num_bl_fifo; i++)
			mutex_unlock(&core->bl_fifo[i].fifo_lock);
		mutex_unlock(&cdm_hw->hw_mutex);