icnss: Do not assert if reboot requested during PDR

When icnss driver sees a PD down, and if the recovery is already in
progress, it forces an assert in debug builds. That is to detect any
Modem failures during PDR or to catch any instance of recursive PDRs.
When system goes thru a reboot or shutdown, and if the recovery is in
progress then avoid calling this assert.

CRs-Fixed: 2135071
Change-Id: I28f5c79a4cd8b83f60a62111535b11c2fba6000b
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
This commit is contained in:
Sameer Thalappil 2017-10-30 11:17:01 -07:00 committed by Gerrit - the friendly Code Review server
parent 9c23726ad4
commit 9fccd743a2

View file

@ -2347,7 +2347,7 @@ static int icnss_driver_event_pd_service_down(struct icnss_priv *priv,
if (!test_bit(ICNSS_WLFW_EXISTS, &priv->state)) if (!test_bit(ICNSS_WLFW_EXISTS, &priv->state))
goto out; goto out;
if (test_bit(ICNSS_PD_RESTART, &priv->state)) { if (test_bit(ICNSS_PD_RESTART, &priv->state) && event_data->crashed) {
icnss_pr_err("PD Down while recovery inprogress, crashed: %d, state: 0x%lx\n", icnss_pr_err("PD Down while recovery inprogress, crashed: %d, state: 0x%lx\n",
event_data->crashed, priv->state); event_data->crashed, priv->state);
ICNSS_ASSERT(0); ICNSS_ASSERT(0);