Parcourir la source

qcacmn: Fix napi polling issue

Do not enable interrupts and continue polling when there is pending work
group napi poll function.

Change-Id: I51184bc5b97f44a65e0883eb614bc47b2b5ca428
CRs-Fixed: 2094313
Venkateswara Swamy Bandaru il y a 7 ans
Parent
commit
4b0ee101ca
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      hif/src/hif_exec.c

+ 1 - 4
hif/src/hif_exec.c

@@ -106,10 +106,7 @@ static int hif_exec_poll(struct napi_struct *napi, int budget)
 
 	work_done = hif_ext_group->handler(hif_ext_group->context, budget);
 
-	if (hif_ext_group->work_complete(hif_ext_group, work_done)) {
-		if (work_done >= budget)
-			work_done = budget - 1;
-
+	if (work_done < budget) {
 		napi_complete(napi);
 		qdf_atomic_dec(&scn->active_grp_tasklet_cnt);
 		hif_ext_group->irq_enable(hif_ext_group);