qcacld-3.0: Add synchronization between unloading & SSR recovering

There is no sync between driver unloading & SSR recovering.
If SSR is in progress, need to wait when driver unloading.

Change-Id: I81b935f9d8d6336b68abd6aecbdc7d28f4762be9
CRs-Fixed: 2534890
このコミットが含まれているのは:
Tiger Yu
2019-10-17 16:08:54 +08:00
committed by nshrivas
コミット 80fbbe1347
2個のファイルの変更16行の追加4行の削除

ファイルの表示

@@ -614,7 +614,7 @@ int ol_copy_ramdump(struct hif_opaque_softc *scn)
return ret;
}
void ramdump_work_handler(void *data)
static void __ramdump_work_handler(void *data)
{
int ret;
uint32_t host_interest_address;
@@ -695,6 +695,18 @@ out_fail:
ol_check_clean_recovery_flag(ol_ctx);
}
void ramdump_work_handler(void *data)
{
struct qdf_op_sync *op_sync;
if (qdf_op_protect(&op_sync))
return;
__ramdump_work_handler(data);
qdf_op_unprotect(op_sync);
}
void fw_indication_work_handler(void *data)
{
struct ol_context *ol_ctx = data;