brcmfmac: access PMU registers using standalone PMU core if available
authorRafał Miłecki <zajec5@gmail.com>
Tue, 26 Jan 2016 16:57:04 +0000 (17:57 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 6 Feb 2016 11:52:47 +0000 (13:52 +0200)
commite2b397f18cc6423c2dad87f9a633add762d869dd
treebb0da15c6329b7c69042ee1d089e3e2733ad6e71
parent9befe9195a17856f8bf5ede7a5c067bd0a281be6
brcmfmac: access PMU registers using standalone PMU core if available

On recent Broadcom chipsets PMU is present as separated core and it
can't be accessed using ChipCommon anymore as it fails with e.g.:
[   18.198412] Unhandled fault: imprecise external abort (0x1406) at 0xb6da200f

Add a new helper function that will return a proper core that should be
used for accessing PMU registers.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c