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

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

Merge "msm: camera: Do not initialte flush call in init state" into dev/msm-4.14-camx

parents 981f8272 12d758d1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -395,6 +395,9 @@ int cam_flash_flush_request(struct cam_req_mgr_flush_request *flush)
	}

	mutex_lock(&fctrl->flash_mutex);
	if (fctrl->flash_state == CAM_FLASH_STATE_INIT)
		goto end;

	if (flush->type == CAM_REQ_MGR_FLUSH_TYPE_ALL) {
		fctrl->last_flush_req = flush->req_id;
		CAM_DBG(CAM_FLASH, "last reqest to flush is %lld",