352-v5.4-0004-brcmfmac-clear-events-in-brcmf_fweh_detach-will-alwa.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From c33330ac06fe863289643e7a13ecdb6a2502dad7 Mon Sep 17 00:00:00 2001
  2. From: Arend van Spriel <arend.vanspriel@broadcom.com>
  3. Date: Thu, 11 Jul 2019 11:05:09 +0200
  4. Subject: [PATCH] brcmfmac: clear events in brcmf_fweh_detach() will always
  5. fail
  6. Clearing firmware events in brcmf_fweh_detach() is always failing
  7. because it is called only upon driver remove and communication
  8. with firmware is no longer possible.
  9. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
  10. Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
  11. Reviewed-by: Franky Lin <franky.lin@broadcom.com>
  12. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  13. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  14. ---
  15. drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c | 9 ---------
  16. 1 file changed, 9 deletions(-)
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c
  19. @@ -319,16 +319,7 @@ void brcmf_fweh_attach(struct brcmf_pub
  20. void brcmf_fweh_detach(struct brcmf_pub *drvr)
  21. {
  22. struct brcmf_fweh_info *fweh = &drvr->fweh;
  23. - struct brcmf_if *ifp = brcmf_get_ifp(drvr, 0);
  24. - s8 eventmask[BRCMF_EVENTING_MASK_LEN];
  25. - if (ifp) {
  26. - /* clear all events */
  27. - memset(eventmask, 0, BRCMF_EVENTING_MASK_LEN);
  28. - (void)brcmf_fil_iovar_data_set(ifp, "event_msgs",
  29. - eventmask,
  30. - BRCMF_EVENTING_MASK_LEN);
  31. - }
  32. /* cancel the worker */
  33. cancel_work_sync(&fweh->event_work);
  34. WARN_ON(!list_empty(&fweh->event_q));