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

Commit d7979e36 authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Raise sys error if sys_init_done times out



Video driver does not unload the firmware immediately
if it timed out waiting on sys_init_done message from
the firmware. Due to this, although the affected session
is closed, video driver tries to put the firmware in power
collapse, even though the core has gone in to bad state.
Avoid this issue by unloading the firmware immediately on
sys_init_done timeout.

Change-Id: I693181f0c0757135620fa26f021d2f2fdfa21259
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 32829884
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2135,6 +2135,7 @@ static int msm_comm_init_core_done(struct msm_vidc_inst *inst)
	rc = msm_comm_check_core_init(inst->core);
	if (rc) {
		dprintk(VIDC_ERR, "%s - failed to initialize core\n", __func__);
		msm_comm_generate_sys_error(inst);
		return rc;
	}
	change_inst_state(inst, MSM_VIDC_CORE_INIT_DONE);