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

Commit 12d758d1 authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura
Browse files

msm: camera: Do not initialte flush call in init state



In camera flash node, add check not to call flush apis
in case of INIT state.

Change-Id: I20978cf54e4530f56830965bf2c2977518be9d33
Signed-off-by: default avatarViswanadha Raju Thotakura <viswanad@codeaurora.org>
parent 059214e9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -393,6 +393,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) {
		rc = fctrl->func_tbl.flush_req(fctrl, FLUSH_ALL, 0);
		if (rc) {