Skip to content

Commit

Permalink
icnss: Skip removing WLAN host driver during recovery
Browse files Browse the repository at this point in the history
Add the necessary checks to skip the invalid operation
of driver remove during the recovery.

Change-Id: I12d755b3b19eb4b8a7cc09e3893d778d88201cae
Signed-off-by: Naman Padhiar <[email protected]>
  • Loading branch information
Naman Padhiar authored and Gerrit - the friendly Code Review server committed Aug 5, 2019
1 parent a82e3f9 commit b6f62dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/soc/qcom/icnss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,10 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
atomic_read(&priv->is_shutdown)) {
atomic_set(&priv->is_shutdown, false);
icnss_call_driver_remove(priv);
if (!test_bit(ICNSS_PD_RESTART, &priv->state) &&
!test_bit(ICNSS_SHUTDOWN_DONE, &priv->state)) {
icnss_call_driver_remove(priv);
}
}

if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
Expand Down

1 comment on commit b6f62dc

@stefanhh0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already cherry-picked, see: fe9e55e

Please sign in to comment.