mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Check for fw down before reinit complete
Currently reinit resets the recovery in progress flag when reinit is successul. It may happen that after initial handshake with FW during reinit, FW crashes and send the FW down indication to the driver. Driver sets the recovery flag in FW down but it gets reset on the successul reinit. Now on subsequent shutdown, driver crashes as recovery flag is reset by last reinit. Check for fw down to reset the recovery flag on reinit completion CRs-Fixed: 2727205 Change-Id: I88effc1211de138351ef9b232645d0c616a9d5dc
This commit is contained in:
parent
6c4a3b8d3c
commit
a69ab56aa6
1 changed files with 11 additions and 1 deletions
|
|
@ -580,7 +580,17 @@ static int __hdd_soc_recovery_reinit(struct device *dev,
|
|||
}
|
||||
|
||||
re_init_fail_cnt = 0;
|
||||
cds_set_recovery_in_progress(false);
|
||||
|
||||
/*
|
||||
* In case of SSR within SSR we have seen the race
|
||||
* where the reinit is successful and fw down is received
|
||||
* which sets the recovery in progress. Now as reinit is
|
||||
* successful we reset the recovery in progress here.
|
||||
* So check if FW is down then don't reset the recovery
|
||||
* in progress
|
||||
*/
|
||||
if (!qdf_is_fw_down())
|
||||
cds_set_recovery_in_progress(false);
|
||||
|
||||
hdd_soc_load_unlock(dev);
|
||||
hdd_start_complete(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue