summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/brcm80211/brcmfmac/chip.h
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2015-08-27 17:14:06 +0300
committerKalle Valo <kvalo@codeaurora.org>2015-09-29 10:31:15 +0300
commit07fe2e38c7fd19dc6a5468d0661fc75586ce9ca4 (patch)
tree5b530e1727a8cb73bfbd7aed2caa6429053a0b36 /drivers/net/wireless/brcm80211/brcmfmac/chip.h
parent95ef12394a4d002c7ed3bcbed224f3391792a02b (diff)
downloadlinux-07fe2e38c7fd19dc6a5468d0661fc75586ce9ca4.tar.xz
brcmfmac: Reset PCIE devices after recognition.
When PCIE type devices are being FW reloaded without being properly reset then the device ends up in a locked state, requiring the device to be completely powered down. This patch adds a reset through watchdog at the moment the device (cores) has been recognized. This will solve warm reboot issues. Cc: Rafal Milecki <zajec5@gmail.com> Reviewed-by: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/chip.h')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/chip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/chip.h b/drivers/net/wireless/brcm80211/brcmfmac/chip.h
index 60dcb38fc77a..f6b5feea23d2 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/chip.h
+++ b/drivers/net/wireless/brcm80211/brcmfmac/chip.h
@@ -73,6 +73,7 @@ struct brcmf_buscore_ops {
u32 (*read32)(void *ctx, u32 addr);
void (*write32)(void *ctx, u32 addr, u32 value);
int (*prepare)(void *ctx);
+ int (*reset)(void *ctx, struct brcmf_chip *chip);
int (*setup)(void *ctx, struct brcmf_chip *chip);
void (*activate)(void *ctx, struct brcmf_chip *chip, u32 rstvec);
};