ath10k: fix incorrect wlan_mac_base in qca6174_regs
PATCH 1/1 ath10k: fix incorrect wlan_mac_base in qca6174_regs
From: Ryan Hsu <[email protected]>
In the 'commit ebee76f7fa46 ("ath10k: allow setting coverage class")', it inherits the design and the address offset from ath9k, but the address is not applicable to QCA6174, which leads to a random crash while doing the resume() operation, since the set_coverage_class.ops will be called from ieee80211_reconfig() when resume() (if the wow is not configured).
Fix the incorrect address offset here to avoid the random crash.
Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.
--- drivers/net/wireless/ath/ath10k/hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/hw.c +1 -1
@@ -51,7 +51,7 @@ .rtc_soc_base_address = 0x00000800, .rtc_wmac_base_address = 0x00001000, .soc_core_base_address = 0x0003a000, - .wlan_mac_base_address = 0x00020000, + .wlan_mac_base_address = 0x00010000, .ce_wrapper_base_address = 0x00034000, .ce0_base_address = 0x00034400, .ce1_base_address = 0x00034800,
Signature · 7 lines
1.9.1 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 5 lines · <[email protected]> writes:
From: Ryan Hsu <[email protected]>
In the 'commit
ebee76f7fa46("ath10k: allow setting coverage class")', it inherits the design and the address offset from ath9k, but the address is not applicable to QCA6174, which leads to a random crash while doing t=
he
Quoted 6 lines
resume()operation, since the set_coverage_class.ops will be called fromieee80211_reconfig()whenresume()(if the wow is not configured).Fix the incorrect address offset here to avoid the random crash.
Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.
This also seems to fix a regression related to firmware restart. I was testing simulate_fw_crash on qca6174 with current ath.git master branch and noticed firmware crash recovery fails every time:
[ 90.402204] ath10k_pci 0000:02:00.0: device is wedged, will not restart
With this patch the recovery works every time I tested this. But I'm not 100% sure yet about this, need to test more.
Quoted 1 line
I'll add '# v4.10' because that should be first release which had ebee76f7fa46, no need to backport to older releases.
--=20
Kalle Valo=
Re: [4.11] ath10k: fix incorrect wlan_mac_base in qca6174_regs
In reply to [email protected]Quoted 8 lines · Ryan Hsu
From: Ryan Hsu <[email protected]>
In the 'commit
ebee76f7fa46("ath10k: allow setting coverage class")', it inherits the design and the address offset from ath9k, but the address is not applicable to QCA6174, which leads to a random crash while doing theresume()operation, since the set_coverage_class.ops will be called fromieee80211_reconfig()whenresume()(if the wow is not configured).
Quoted 7 lines
Fix the incorrect address offset here to avoid the random crash.
Verified on QCA6174/hw3.0 with firmware WLAN.RM.4.4-00022-QCARMSWPZ-2.
Fixes ebee76f7fa46 ("ath10k: allow setting coverage class")Signed-off-by Ryan Hsu <[email protected]>
Patch applied to ath-current branch of ath.git, thanks.
6be3b6cce1e2 ath10k: fix incorrect wlan_mac_base in qca6174_regs
Signature · 6 lines
https://patchwork.kernel.org/patch/9622251/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches