Check if FW_DOWN is reason for SOC_WAKE REQ timeout

There is possiblity that after sending SOC_WAKE_REQ/RESP
SMP2P message WPSS might go down for some reason in that
case ACK for SOC_WAKE REQ/RESP from WPSS can never come
and request will get timedout and ICNSS asserts.To avoid
this, check if FW_DOWN is reason for SOC_WAKE REQ timeout
and avoid assert.

Change-Id: Id371d625b880847bf02392d0f722b58aa30fc2b2
This commit is contained in:
Naman Padhiar
2022-03-09 00:11:58 +05:30
کامیت شده توسط Gerrit - the friendly Code Review server
والد ed7cc00bfc
کامیت 7f324af0bf

مشاهده پرونده

@@ -480,7 +480,8 @@ static int icnss_send_smp2p(struct icnss_priv *priv,
msecs_to_jiffies(SMP2P_SOC_WAKE_TIMEOUT))) {
icnss_pr_err("SMP2P Soc Wake timeout msg %d, %s\n", msg_id,
icnss_smp2p_str[smp2p_entry]);
ICNSS_ASSERT(0);
if (!test_bit(ICNSS_FW_DOWN, &priv->state))
ICNSS_ASSERT(0);
}
}
}