dsp: host driver panic [1/1]

PD#SWPL-184597

Problem:
when there is no dsp, the dsp pointer is used
(host->host_dsp->pm_support_ffv),so it cause panic

Solution:
when there is no dsp, the judgment is not executed

Verify:
sm1

Change-Id: I2342d12f279c4a888a0705a2bb1cd21f59be9fc1
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
This commit is contained in:
Liming Xue
2024-07-15 10:10:53 +08:00
committed by gerrit autosubmit
parent d7c1add259
commit 96fc53690c
+1 -1
View File
@@ -1155,7 +1155,7 @@ static int host_platform_probe(struct platform_device *pdev)
host_data->host = host;
platform_set_drvdata(pdev, host);
if (host->host_dsp->pm_support_ffv) {
if (strstr(host_data->name, "dsp") && host->host_dsp->pm_support_ffv) {
#ifdef CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
register_host_early_suspend_handler(host);
#endif