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

Commit 5b293651 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: lrme: Check the HW state before access register" into dev/msm-4.14-camx

parents 7d14115d 1903d80e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -739,6 +739,11 @@ int cam_lrme_hw_process_irq(void *priv, void *data)

	mutex_lock(&lrme_hw->hw_mutex);

	if (lrme_hw->hw_state == CAM_HW_STATE_POWER_DOWN) {
		CAM_DBG(CAM_LRME, "LRME HW is in off state");
		goto end;
	}

	if (top_irq_status & (1 << 3)) {
		CAM_DBG(CAM_LRME, "Error");
		rc = cam_lrme_hw_util_process_err(lrme_hw);