dsp : Update timeout for spf_apm_ready_check
Added timing for spf_ready_check api, rightnow we are waiting for 10sec when apm is not ready instead updated timing as below during adsp loading 10sec during add child devices 5sec during prm send pkt 0sec Check for q6 state at the start of gpr_send_pkt. Change-Id: I94a93842cc0dc7fc9acd7232f413b3c3a9038536 Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
This commit is contained in:

committed by
Sarath Varma Ganapathiraju

parent
08004d8420
commit
378a3eea83
@@ -26,6 +26,7 @@
|
||||
#define SSR_RESET_CMD 1
|
||||
#define IMAGE_UNLOAD_CMD 0
|
||||
#define MAX_FW_IMAGES 4
|
||||
#define ADSP_LOADER_APM_TIMEOUT_MS 10000
|
||||
|
||||
enum spf_subsys_state {
|
||||
SPF_SUBSYS_DOWN,
|
||||
@@ -137,7 +138,7 @@ static void adsp_load_fw(struct work_struct *adsp_ldr_work)
|
||||
|
||||
load_adsp:
|
||||
{
|
||||
adsp_state = spf_core_is_apm_ready();
|
||||
adsp_state = spf_core_is_apm_ready(ADSP_LOADER_APM_TIMEOUT_MS);
|
||||
if (adsp_state == SPF_SUBSYS_DOWN) {
|
||||
if (!priv->adsp_fw_name) {
|
||||
dev_info(&pdev->dev, "%s: Load default ADSP\n",
|
||||
|
Reference in New Issue
Block a user