Skip to content

Commit 1f1f7d5

Browse files
Kang Yangkvalo
authored andcommitted
wifi: ath12k: use ATH12K_PCI_IRQ_DP_OFFSET for DP IRQ
Like ATH12K_PCI_IRQ_CE0_OFFSET, define ATH12K_PCI_IRQ_DP_OFFSET for DP to save the IRQ instead of base_vector from MSI config. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 Signed-off-by: Kang Yang <[email protected]> Acked-by: Jeff Johnson <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 604308a commit 1f1f7d5

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+4
-4
lines changed

drivers/net/wireless/ath/ath12k/pci.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
#define ATH12K_PCI_BAR_NUM 0
1818
#define ATH12K_PCI_DMA_MASK 32
1919

20-
#define ATH12K_PCI_IRQ_CE0_OFFSET 3
20+
#define ATH12K_PCI_IRQ_CE0_OFFSET 3
21+
#define ATH12K_PCI_IRQ_DP_OFFSET 14
2122

2223
#define WINDOW_ENABLE_BIT 0x40000000
2324
#define WINDOW_REG_ADDRESS 0x310c
@@ -511,9 +512,8 @@ static irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg)
511512
static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)
512513
{
513514
int i, j, ret, num_vectors = 0;
514-
u32 user_base_data = 0, base_vector = 0, base_idx;
515+
u32 user_base_data = 0, base_vector = 0;
515516

516-
base_idx = ATH12K_PCI_IRQ_CE0_OFFSET + CE_COUNT_MAX;
517517
ret = ath12k_pci_get_user_msi_assignment(ab, "DP",
518518
&num_vectors,
519519
&user_base_data,
@@ -542,7 +542,7 @@ static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)
542542
}
543543

544544
irq_grp->num_irq = num_irq;
545-
irq_grp->irqs[0] = base_idx + i;
545+
irq_grp->irqs[0] = ATH12K_PCI_IRQ_DP_OFFSET + i;
546546

547547
for (j = 0; j < irq_grp->num_irq; j++) {
548548
int irq_idx = irq_grp->irqs[j];

0 commit comments

Comments
 (0)