mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
icnss2: Do not clear SHUTDOWN_DONE flag until reinit is done
In case of SSR/PDR, when FW comes up, platform driver receives FW_READY indication. As part of FW_READY, platform driver calls shutdown and reinit ops of host driver. Clear SHUTDOWN_DONE flag at right place so that if reinit is not called SSR/PDR because of FW again went down between calling driver shutdown and reinit then next time directly call reinit and avoid calling shutdown. Change-Id: Icdd259d52db1b84203a9efb2e5948207f3213ce6 Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
This commit is contained in:
parent
0e2097ce85
commit
f75af2ca53
1 changed files with 2 additions and 2 deletions
|
|
@ -716,7 +716,7 @@ out:
|
|||
|
||||
static int icnss_pd_restart_complete(struct icnss_priv *priv)
|
||||
{
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
icnss_pm_relax(priv);
|
||||
|
||||
|
|
@ -756,7 +756,6 @@ static int icnss_pd_restart_complete(struct icnss_priv *priv)
|
|||
goto out_power_off;
|
||||
}
|
||||
|
||||
out:
|
||||
icnss_block_shutdown(false);
|
||||
clear_bit(ICNSS_SHUTDOWN_DONE, &priv->state);
|
||||
return 0;
|
||||
|
|
@ -767,6 +766,7 @@ call_probe:
|
|||
out_power_off:
|
||||
icnss_hw_power_off(priv);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue