045ab4953bb9a43044435baa8e242b3f4794952a
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / 323-0002-brcmfmac-allow-storing-PMU-core-without-wrapper-addr.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
2 Date: Tue, 26 Jan 2016 17:57:02 +0100
3 Subject: [PATCH] brcmfmac: allow storing PMU core without wrapper address
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 Separated PMU core can be found in new devices and should be used for
9 accessing PMU registers (which were routed through ChipCommon so far).
10 This core is one of exceptions that doesn't have or need wrapper address
11 to be still safely accessible.
12
13 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
14 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
15 ---
16
17 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
18 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
19 @@ -883,7 +883,8 @@ int brcmf_chip_dmp_erom_scan(struct brcm
20 rev = (val & DMP_COMP_REVISION) >> DMP_COMP_REVISION_S;
21
22 /* need core with ports */
23 - if (nmw + nsw == 0)
24 + if (nmw + nsw == 0 &&
25 + id != BCMA_CORE_PMU)
26 continue;
27
28 /* try to obtain register address info */