Browse Source

qcacmn: Fix kernel warning when free CE/DP irq

Recently wlan host might configure irq affinity for CE/DP,
but these irq affinity hint has not been cleared before they
are freed, kernel will raise warning.
Clear the irq affinity hint before freeing irq.

Change-Id: I17d0d6aee45572685fb2ed69112e9b6b4c9b303a
CRs-Fixed: 3528315
Jinwei Chen 2 years ago
parent
commit
a9b41ac223
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hif/src/pcie/if_pci.c

+ 2 - 1
hif/src/pcie/if_pci.c

@@ -2129,7 +2129,7 @@ static int hif_ce_srng_free_irq(struct hif_softc *scn)
 
 		irq = sc->ce_irq_num[ce_id];
 
-		hif_ce_irq_remove_affinity_hint(irq);
+		hif_irq_affinity_remove(irq);
 
 		hif_debug("%s: (ce_id %d, irq %d)", __func__, ce_id, irq);
 
@@ -2156,6 +2156,7 @@ void hif_pci_deconfigure_grp_irq(struct hif_softc *scn)
 							irq,
 							QDF_IRQ_DISABLE_UNLAZY);
 				}
+				hif_irq_affinity_remove(irq);
 				pfrm_free_irq(scn->qdf_dev->dev,
 					      irq, hif_ext_group);
 			}