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

Commit 16f3b600 authored by George Shen's avatar George Shen
Browse files

msm: cvp: Relocate CVP DSP interface init



It fixed a page fault issue if DSP glink probing happens before
cvp device probing.

Change-Id: Ie3ec2cf3c213fca9fc685c6c44cccbf4d1e59bde
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent fd77bb96
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -404,6 +404,10 @@ static int msm_probe_cvp_device(struct platform_device *pdev)

	atomic64_set(&core->kernel_trans_id, 0);

	rc = cvp_dsp_device_init();
	if (rc)
		dprintk(CVP_WARN, "Failed to initialize DSP driver\n");

	return rc;

err_fail_sub_device_probe:
@@ -576,10 +580,6 @@ static int __init msm_cvp_init(void)
	cvp_driver->buf_cache = KMEM_CACHE(cvp_internal_buf, 0);
	cvp_driver->smem_cache = KMEM_CACHE(msm_cvp_smem, 0);

	rc = cvp_dsp_device_init();
	if (rc)
		dprintk(CVP_WARN, "Failed to initialize DSP driver\n");

	return rc;
}