From a8c046d68b2aa0a072ce9d7c86120725a89ac1bb Mon Sep 17 00:00:00 2001 From: Nandha Kishore Easwaran Date: Wed, 8 Apr 2020 20:02:27 +0530 Subject: [PATCH] qcacmn: Change DP interrupt names Change DP interrupt names to unique values so that interrupt affinity can be adjusted based on this. This is similar to what is being done for Copy Engine interrupts. Change-Id: I7f1789c8c0103e7c01b0a2956a7a37149c7462d1 --- hif/src/pcie/if_pci.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index 68c385035bc1..ae390f427de3 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -50,6 +50,7 @@ #include "pci_api.h" #include "ahb_api.h" +#include "wlan_cfg.h" /* Maximum ms timeout for host to wake up target */ #define PCIE_WAKE_TIMEOUT 1000 @@ -62,6 +63,22 @@ */ #define CPU_WARM_RESET_WAR +const char *dp_irqname[WLAN_CFG_INT_NUM_CONTEXTS] = { +"WLAN_GRP_DP_0", +"WLAN_GRP_DP_1", +"WLAN_GRP_DP_2", +"WLAN_GRP_DP_3", +"WLAN_GRP_DP_4", +"WLAN_GRP_DP_5", +"WLAN_GRP_DP_6", +#if !defined(WLAN_MAX_PDEVS) +"WLAN_GRP_DP_7", +"WLAN_GRP_DP_8", +"WLAN_GRP_DP_9", +"WLAN_GRP_DP_10", +#endif +}; + /* * Top-level interrupt handler for all PCI interrupts from a Target. * When a block of MSI interrupts is allocated, this top-level handler @@ -3658,7 +3675,7 @@ int hif_pci_configure_grp_irq(struct hif_softc *scn, scn->qdf_dev->dev, irq, hif_ext_group_interrupt_handler, IRQF_SHARED | IRQF_NO_SUSPEND, - "wlan_EXT_GRP", + dp_irqname[hif_ext_group->grp_id], hif_ext_group); if (ret) { HIF_ERROR("%s: request_irq failed ret = %d",