remoetproc: pas: Remove voting from panic path

Voting for power rails during SoC crash is leading
delay in panic handling. During a SoC crash scenario
the power rails will already be up, therefore we
dont need to vote for this again.

Change-Id: I084e6eee8a51dd75dd728e39feb50e17d4f220a7
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
This commit is contained in:
Gokul krishna Krishnakumar 2024-02-07 13:45:55 -08:00 committed by Kamati
parent 789bb26df9
commit bd8d48abf9

View File

@ -969,12 +969,17 @@ static int rproc_panic_handler(struct notifier_block *this,
/* wake up SOCCP during panic to run error handlers on SOCCP */
dev_info(adsp->dev, "waking SOCCP from panic path\n");
ret = rproc_set_state(adsp->rproc, true);
ret = qcom_smem_state_update_bits(adsp->wake_state,
SOCCP_STATE_MASK,
BIT(adsp->wake_bit));
if (ret) {
dev_err(adsp->dev, "failed to update smem bits for D3 to D0\n");
goto done;
}
ret = rproc_config_check(adsp, SOCCP_D0);
if (ret)
dev_err(adsp->dev, "state did not changed during panic\n");
else
dev_info(adsp->dev, "subsystem woke-up done from panic path\n");
dev_err(adsp->dev, "failed to change to D0\n");
done:
return NOTIFY_DONE;
}