msm: cvp: fix DSP probe crash

Fix dsp probe crash from cvp driver when cvp hardware
is enabled.

Change-Id: I22abb2ccd3e4a8c983b9bc3f49ea86d9f41f546b
Signed-off-by: Ruofei Ma <ruofeim@codeaurora.org>
This commit is contained in:
Ruofei Ma 2020-02-03 18:03:38 -08:00 • committed by Gerrit - the friendly Code Review server
commit 9099e8a87c
2 changed files with 3 additions and 3 deletions

View file

@ -389,7 +389,7 @@ void cvp_dsp_send_hfi_queue(void)
int rc;
core = list_first_entry(&cvp_driver->cores, struct msm_cvp_core, list);
if (core)
if (core && core->device)
device = core->device->hfi_device_data;
else
return;

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/debugfs.h>
@ -108,7 +108,7 @@ static struct msm_cvp_common_data sm8350_common_data[] = {
},
{
.key = "qcom,sw-power-collapse",
.value = 1,
.value = 0,
},
{
.key = "qcom,domain-attr-non-fatal-faults",