Merge "remoteproc: qcom: Do not Panic if there is no vote on rproc"

This commit is contained in:
qctecmdr 2021-11-19 13:24:50 -08:00 committed by Gerrit - the friendly Code Review server
commit f62fb0701c

View File

@ -72,15 +72,16 @@ static void qcom_q6v5_crash_handler_work(struct work_struct *work)
votes = atomic_xchg(&rproc->power, 0);
/* if votes are zero, rproc has already been shutdown */
if (votes == 0)
goto rproc_unlock;
if (votes == 0) {
mutex_unlock(&rproc->lock);
return;
}
list_for_each_entry_reverse(subdev, &rproc->subdevs, node) {
if (subdev->stop)
subdev->stop(subdev, true);
}
rproc_unlock:
mutex_unlock(&rproc->lock);
/*