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

Commit e43dd822 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Resume before firmware unload



Resume from software power collapse if power collapsed
before video firmware unload to avoid video usecase failure.

CRs-Fixed: 2036629
Change-Id: I9d428874ff91d6fc8aed4189a59563c9e4dd4a32
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent a66b9ffd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1971,6 +1971,8 @@ static int venus_hfi_core_release(void *dev)
	if (device->res->pm_qos_latency_us &&
		pm_qos_request_active(&device->qos))
		pm_qos_remove_request(&device->qos);

	__resume(device);
	__set_state(device, VENUS_STATE_DEINIT);
	__unload_fw(device);

@@ -4060,6 +4062,8 @@ static void __unload_fw(struct venus_hfi_device *device)
	__venus_power_off(device);
	device->resources.fw.cookie = NULL;
	__deinit_resources(device);

	dprintk(VIDC_PROF, "Firmware unloaded successfully\n");
}

static int venus_hfi_get_fw_info(void *dev, struct hal_fw_info *fw_info)