msm: ipa: add safety SSR check for QMI message handling
When QMI_IPA_INIT_MODEM_DRIVER_REQ_V01 message is sent just before modem crash there is no gurantee we will get proper response to handle gracefully. Make use of remoteproc notifications to handle the timeout gracefully when in SSR condition. Change-Id: Icdf90ab2abcba9ab01f9e3bc9be9c32686e2d172 Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
c32f794de9
commit
d733f3f036
@@ -1767,7 +1767,8 @@ static void ipa3_q6_clnt_svc_arrive(struct work_struct *work)
|
||||
/* Initialize modem IPA-driver */
|
||||
IPAWANDBG("send ipa3_qmi_init_modem_send_sync_msg to modem\n");
|
||||
rc = ipa3_qmi_init_modem_send_sync_msg();
|
||||
if ((rc == -ENETRESET) || (rc == -ENODEV) || (rc == -ECONNRESET)) {
|
||||
if ((rc == -ENETRESET) || (rc == -ENODEV) || (rc == -ECONNRESET) ||
|
||||
atomic_read(&ipa3_ctx->is_ssr)) {
|
||||
IPAWANERR(
|
||||
"ipa3_qmi_init_modem_send_sync_msg failed due to SSR!\n");
|
||||
/* Cleanup when ipa3_wwan_remove is called */
|
||||
|
Reference in New Issue
Block a user