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:
parent
9c23726ad4
commit
9fccd743a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue