qcacld-2.0: Fix SSR was not working in USB
Added the kobject event for silent recovery
Change-Id: Iba2c420d48dd990f105b7c47822fc38035af06c3
CRs-Fixed: 2147881
diff --git a/CORE/SERVICES/BMI/ol_fw.c b/CORE/SERVICES/BMI/ol_fw.c
index a984636..ec9cdf9 100644
--- a/CORE/SERVICES/BMI/ol_fw.c
+++ b/CORE/SERVICES/BMI/ol_fw.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -1358,8 +1358,11 @@
remaining -= 16;
reg += 4;
}
- if ((scn->enableFwSelfRecovery || scn->enableRamdumpCollection) && (scn->fw_ram_dumping == 0))
+ if ((scn->enableFwSelfRecovery || scn->enableRamdumpCollection) &&
+ (scn->fw_ram_dumping == 0)){
+ kobject_uevent(&scn->adf_dev->dev->kobj, KOBJ_OFFLINE);
vos_set_logp_in_progress(VOS_MODULE_ID_VOSS, FALSE);
+ }
}
else if ((!scn->enableFwSelfRecovery)&&
((pattern & FW_RAMDUMP_PATTERN_MASK) ==