1
0

319-0002-brcmfmac-be-more-verbose-when-PSM-s-watchdog-fires.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  2. Date: Mon, 30 Jan 2017 16:09:52 +0100
  3. Subject: [PATCH] brcmfmac: be more verbose when PSM's watchdog fires
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. It's important to inform user so he knows things went wrong. He may also
  8. want to get memory dump for further debugging purposes.
  9. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  10. Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c
  14. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c
  15. @@ -58,10 +58,18 @@ static int brcmf_debug_psm_watchdog_noti
  16. const struct brcmf_event_msg *evtmsg,
  17. void *data)
  18. {
  19. + int err;
  20. +
  21. brcmf_dbg(TRACE, "enter: bsscfgidx=%d\n", ifp->bsscfgidx);
  22. - return brcmf_debug_create_memdump(ifp->drvr->bus_if, data,
  23. - evtmsg->datalen);
  24. + brcmf_err("PSM's watchdog has fired!\n");
  25. +
  26. + err = brcmf_debug_create_memdump(ifp->drvr->bus_if, data,
  27. + evtmsg->datalen);
  28. + if (err)
  29. + brcmf_err("Failed to get memory dump, %d\n", err);
  30. +
  31. + return err;
  32. }
  33. void brcmf_debugfs_init(void)