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

Commit 31f00749 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Deassert venus core-clk prior to subsystem_put"

parents 611f112b c323faee
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4286,6 +4286,15 @@ static void __unload_fw(struct venus_hfi_device *device)
	if (device->state != VENUS_STATE_DEINIT)
		flush_workqueue(device->venus_pm_workq);
	__halt_axi(device);

	/*
	 * If the core_clk is asserted, then PIL cannot enable
	 * any of the venus clocks. So deassert the clock before
	 * calling subsystem_put.
	 */
	if (__core_clk_reset(device, CLK_RESET_DEASSERT))
		dprintk(VIDC_ERR, "failed to deassert core_clk\n");

	subsystem_put(device->resources.fw.cookie);
	__interface_queues_release(device);
	__venus_power_off(device, false);