Просмотр исходного кода

qcacmn: HIF changes for umac prereset handling

Handle Umac prereset event from firmware.

Change-Id: I88a25ae8eb403af40f044de4500ce42729da1e49
CRs-Fixed: 3174560
Pavankumar Nandeshwar 3 лет назад
Родитель
Сommit
1607e73a26
2 измененных файлов с 5 добавлено и 3 удалено
  1. 1 1
      hif/inc/hif.h
  2. 4 2
      hif/src/hif_exec.c

+ 1 - 1
hif/inc/hif.h

@@ -1792,7 +1792,7 @@ enum hif_exec_type {
 	HIF_EXEC_TASKLET_TYPE,
 };
 
-typedef uint32_t (*ext_intr_handler)(void *, uint32_t);
+typedef uint32_t (*ext_intr_handler)(void *, uint32_t, int);
 
 /**
  * hif_get_int_ctx_irq_num() - retrieve an irq num for an interrupt context id

+ 4 - 2
hif/src/hif_exec.c

@@ -519,9 +519,11 @@ static void hif_exec_tasklet_fn(unsigned long data)
 			(struct hif_exec_context *)data;
 	struct hif_softc *scn = HIF_GET_SOFTC(hif_ext_group->hif);
 	unsigned int work_done;
+	int cpu = smp_processor_id();
 
 	work_done =
-		hif_ext_group->handler(hif_ext_group->context, HIF_MAX_BUDGET);
+		hif_ext_group->handler(hif_ext_group->context, HIF_MAX_BUDGET,
+				       cpu);
 
 	if (hif_ext_group->work_complete(hif_ext_group, work_done)) {
 		qdf_atomic_dec(&(scn->active_grp_tasklet_cnt));
@@ -640,7 +642,7 @@ static int hif_exec_poll(struct napi_struct *napi, int budget)
 	hif_latency_profile_measure(hif_ext_group);
 
 	work_done = hif_ext_group->handler(hif_ext_group->context,
-					   normalized_budget);
+					   normalized_budget, cpu);
 
 	actual_dones = work_done;