]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.10.7/ath10k-fix-incorrect-wlan_mac_base-in-qca6174_regs.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.10.7 / ath10k-fix-incorrect-wlan_mac_base-in-qca6174_regs.patch
1 From 6be3b6cce1e225f189b68b4e84fc711d19b4277b Mon Sep 17 00:00:00 2001
2 From: Ryan Hsu <ryanhsu@qca.qualcomm.com>
3 Date: Mon, 13 Mar 2017 15:49:03 -0700
4 Subject: ath10k: fix incorrect wlan_mac_base in qca6174_regs
5
6 From: Ryan Hsu <ryanhsu@qca.qualcomm.com>
7
8 commit 6be3b6cce1e225f189b68b4e84fc711d19b4277b upstream.
9
10 In the 'commit ebee76f7fa46 ("ath10k: allow setting coverage class")',
11 it inherits the design and the address offset from ath9k, but the address
12 is not applicable to QCA6174, which leads to a random crash while doing the
13 resume() operation, since the set_coverage_class.ops will be called from
14 ieee80211_reconfig() when resume() (if the wow is not configured).
15
16 Fix the incorrect address offset here to avoid the random crash.
17
18 Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.
19
20 kvalo: this also seems to fix a regression with firmware restart.
21
22 Fixes: ebee76f7fa46 ("ath10k: allow setting coverage class")
23 Signed-off-by: Ryan Hsu <ryanhsu@qca.qualcomm.com>
24 Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
25 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26
27 ---
28 drivers/net/wireless/ath/ath10k/hw.c | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31 --- a/drivers/net/wireless/ath/ath10k/hw.c
32 +++ b/drivers/net/wireless/ath/ath10k/hw.c
33 @@ -51,7 +51,7 @@ const struct ath10k_hw_regs qca6174_regs
34 .rtc_soc_base_address = 0x00000800,
35 .rtc_wmac_base_address = 0x00001000,
36 .soc_core_base_address = 0x0003a000,
37 - .wlan_mac_base_address = 0x00020000,
38 + .wlan_mac_base_address = 0x00010000,
39 .ce_wrapper_base_address = 0x00034000,
40 .ce0_base_address = 0x00034400,
41 .ce1_base_address = 0x00034800,