323-0002-brcmfmac-allow-storing-PMU-core-without-wrapper-addr.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  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. Separated PMU core can be found in new devices and should be used for
  8. accessing PMU registers (which were routed through ChipCommon so far).
  9. This core is one of exceptions that doesn't have or need wrapper address
  10. to be still safely accessible.
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Signed-off-by: Kalle Valo <[email protected]>
  13. ---
  14. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
  15. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
  16. @@ -883,7 +883,8 @@ int brcmf_chip_dmp_erom_scan(struct brcm
  17. rev = (val & DMP_COMP_REVISION) >> DMP_COMP_REVISION_S;
  18. /* need core with ports */
  19. - if (nmw + nsw == 0)
  20. + if (nmw + nsw == 0 &&
  21. + id != BCMA_CORE_PMU)
  22. continue;
  23. /* try to obtain register address info */