ath10k: Fix target to cpu address conversion logic
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Fri, 3 Jul 2015 13:55:27 +0000 (19:25 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 11 Jul 2015 16:06:17 +0000 (19:06 +0300)
In commit 418ca5992e2f ("ath10k: Make target cpu address to
CE address conversion chip specific") mask 0x7fff is added
by mistake instead of 0x7ff. Fix this regression.

Fixes: 418ca5992e2f ("ath10k: Make target cpu address to CE address conversion chip specific")
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c

index 1b4634a6374dbe62a71fef53d10fac32e5738777..5778e5277823c53731ab7dd047f60a19816c7515 100644 (file)
@@ -765,7 +765,7 @@ static u32 ath10k_pci_targ_cpu_to_ce_addr(struct ath10k *ar, u32 addr)
        case ATH10K_HW_QCA6174:
                val = (ath10k_pci_read32(ar, SOC_CORE_BASE_ADDRESS +
                                          CORE_CTRL_ADDRESS) &
-                      0x7fff) << 21;
+                      0x7ff) << 21;
                break;
        case ATH10K_HW_QCA99X0:
                val = ath10k_pci_read32(ar, PCIE_BAR_REG_ADDRESS);