msm: eva: Avoid using wrong bus client to vote

Fix a racing between power voting and SSR shutdown.

Change-Id: I75c13353174a514ef175056dd98f827a987bff7a
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
Cette révision appartient à :
George Shen
2023-06-22 12:50:47 -07:00
révisé par Gerrit - the friendly Code Review server
Parent fef6ef9ce5
révision b029f87904
2 fichiers modifiés avec 4 ajouts et 1 suppressions

Voir le fichier

@@ -219,6 +219,9 @@ int msm_cvp_update_power(struct msm_cvp_inst *inst)
return -ECONNRESET;
core = inst->core;
if (!core || core->state == CVP_CORE_UNINIT)
return -ECONNRESET;
clocks = &core->resources.clock_set;
cl = &clocks->clock_tbl[clocks->count - 1];
if (!cl->has_scaling) {

Voir le fichier

@@ -290,7 +290,7 @@ int msm_cvp_map_buf_dsp(struct msm_cvp_inst *inst, struct eva_kmd_buffer *buf)
file = msm_cvp_fget(buf->fd, inst->task, FMODE_PATH, 1);
if (file == NULL) {
dprintk(CVP_WARN, "%s fail to get file from fd\n", __func__);
dprintk(CVP_WARN, "%s fail to get file from fd %d %s\n", __func__, buf->fd, inst->proc_name);
return -EINVAL;
}