319-v4.12-0021-brcmfmac-move-brcmf_fws_deinit-to-bcdc-layer.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From 8f9dd1a974380ebe2d7bf82df4e6ba6bfb89c575 Mon Sep 17 00:00:00 2001
  2. From: Franky Lin <franky.lin@broadcom.com>
  3. Date: Tue, 28 Mar 2017 11:43:25 +0100
  4. Subject: [PATCH] brcmfmac: move brcmf_fws_deinit to bcdc layer
  5. Move brcmf_fws_deinit into brcmf_proto_bcdc_detach since it is a bcdc
  6. exclusive feature.
  7. Signed-off-by: Franky Lin <franky.lin@broadcom.com>
  8. Reviewed-by: Arend Van Spriel <arend.vanspriel@broadcom.com>
  9. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  10. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  11. ---
  12. drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c | 1 +
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 7 -------
  14. 2 files changed, 1 insertion(+), 7 deletions(-)
  15. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
  16. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
  17. @@ -464,6 +464,7 @@ fail:
  18. void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr)
  19. {
  20. + brcmf_fws_deinit(drvr);
  21. kfree(drvr->proto->pd);
  22. drvr->proto->pd = NULL;
  23. }
  24. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
  25. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
  26. @@ -32,7 +32,6 @@
  27. #include "p2p.h"
  28. #include "cfg80211.h"
  29. #include "fwil.h"
  30. -#include "fwsignal.h"
  31. #include "feature.h"
  32. #include "proto.h"
  33. #include "pcie.h"
  34. @@ -1044,10 +1043,6 @@ fail:
  35. brcmf_cfg80211_detach(drvr->config);
  36. drvr->config = NULL;
  37. }
  38. - if (drvr->fws) {
  39. - brcmf_proto_del_if(ifp->drvr, ifp);
  40. - brcmf_fws_deinit(drvr);
  41. - }
  42. brcmf_net_detach(ifp->ndev, false);
  43. if (p2p_ifp)
  44. brcmf_net_detach(p2p_ifp->ndev, false);
  45. @@ -1113,8 +1108,6 @@ void brcmf_detach(struct device *dev)
  46. brcmf_cfg80211_detach(drvr->config);
  47. - brcmf_fws_deinit(drvr);
  48. -
  49. brcmf_bus_stop(drvr->bus_if);
  50. brcmf_proto_detach(drvr);