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

Commit 084dad50 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: Set preset registers after firmware reboot"

parents fb09f9cd 72a6a4a1
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1331,6 +1331,12 @@ static inline int venus_hfi_power_on(struct venus_hfi_device *device)
		goto err_enable_clk;
	}

	/* Reboot the firmware */
	rc = venus_hfi_tzbsp_set_video_state(TZBSP_VIDEO_STATE_RESUME);
	if (rc) {
		dprintk(VIDC_ERR, "Failed to resume video core %d\n", rc);
		goto err_set_video_state;
	}

	/*
	 * Re-program all of the registers that get reset as a result of
@@ -1351,13 +1357,6 @@ static inline int venus_hfi_power_on(struct venus_hfi_device *device)
		venus_hfi_write_register(device, VIDC_MMAP_ADDR,
				(u32)device->qdss.align_device_addr);

	/* Reboot the firmware */
	rc = venus_hfi_tzbsp_set_video_state(TZBSP_VIDEO_STATE_RESUME);
	if (rc) {
		dprintk(VIDC_ERR, "Failed to resume video core %d\n", rc);
		goto err_set_video_state;
	}

	/* Wait for boot completion */
	rc = venus_hfi_reset_core(device);
	if (rc) {