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

Commit 2c8ba2e7 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: fix iommu attach failures at end of playback"

parents 4bb4a49d 3b131a3f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3446,10 +3446,13 @@ static void venus_hfi_unload_fw(void *dev)
		mutex_lock(&device->clk_pwr_lock);
		subsystem_put(device->resources.fw.cookie);
		venus_hfi_disable_regulators(device);
		device->power_enabled = 0;
		mutex_unlock(&device->clk_pwr_lock);
		venus_hfi_interface_queues_release(dev);
		venus_hfi_iommu_detach(device);

		mutex_lock(&device->clk_pwr_lock);
		device->power_enabled = 0;
		mutex_unlock(&device->clk_pwr_lock);
		device->resources.fw.cookie = NULL;
	}
}