Skip to content

Commit b6f62dc

Browse files
Naman PadhiarGerrit - the friendly Code Review server
authored andcommitted
icnss: Skip removing WLAN host driver during recovery
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]>
1 parent a82e3f9 commit b6f62dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/soc/qcom/icnss.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,10 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
14171417
if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&
14181418
atomic_read(&priv->is_shutdown)) {
14191419
atomic_set(&priv->is_shutdown, false);
1420-
icnss_call_driver_remove(priv);
1420+
if (!test_bit(ICNSS_PD_RESTART, &priv->state) &&
1421+
!test_bit(ICNSS_SHUTDOWN_DONE, &priv->state)) {
1422+
icnss_call_driver_remove(priv);
1423+
}
14211424
}
14221425

14231426
if (code == SUBSYS_BEFORE_SHUTDOWN && !notif->crashed &&

0 commit comments

Comments
 (0)