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

Commit 7e22d0fe 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: Reinitialize skip_pc_count on power resume"

parents d40a4b5b 4b11d13c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4118,7 +4118,7 @@ static inline int __resume(struct venus_hfi_device *device)
		return -EINVAL;
	} else if (device->power_enabled) {
		dprintk(VIDC_DBG, "Power is already enabled\n");
		return 0;
		goto exit;
	}

	dprintk(VIDC_DBG, "Resuming from power collapse\n");
@@ -4158,6 +4158,8 @@ static inline int __resume(struct venus_hfi_device *device)
		pm_qos_add_request(&device->qos, PM_QOS_CPU_DMA_LATENCY,
				device->res->pm_qos_latency_us);
	dprintk(VIDC_INFO, "Resumed from power collapse\n");
exit:
	device->skip_pc_count = 0;
	return rc;
err_reset_core:
	__tzbsp_set_video_state(TZBSP_VIDEO_STATE_SUSPEND);