325-v4.17-0007-brcmfmac-change-log-level-for-some-low-level-sdio-fu.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From d678296bfb9a630d0000222fc21f4ed0d0d65332 Mon Sep 17 00:00:00 2001
  2. From: Arend Van Spriel <[email protected]>
  3. Date: Tue, 20 Feb 2018 00:14:24 +0100
  4. Subject: [PATCH] brcmfmac: change log level for some low-level sdio functions
  5. Reducing the number of trace level messages in sdio code giving
  6. them sdio log level instead.
  7. Reviewed-by: Hante Meuleman <[email protected]>
  8. Reviewed-by: Pieter-Paul Giesberts <[email protected]>
  9. Reviewed-by: Franky Lin <[email protected]>
  10. Signed-off-by: Arend van Spriel <[email protected]>
  11. Signed-off-by: Kalle Valo <[email protected]>
  12. ---
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 10 +++++-----
  14. 1 file changed, 5 insertions(+), 5 deletions(-)
  15. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  16. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  17. @@ -1706,7 +1706,7 @@ brcmf_sdio_read_control(struct brcmf_sdi
  18. u8 *buf = NULL, *rbuf;
  19. int sdret;
  20. - brcmf_dbg(TRACE, "Enter\n");
  21. + brcmf_dbg(SDIO, "Enter\n");
  22. if (bus->rxblen)
  23. buf = vzalloc(bus->rxblen);
  24. if (!buf)
  25. @@ -1809,7 +1809,7 @@ static uint brcmf_sdio_readframes(struct
  26. struct brcmf_sdio_hdrinfo *rd = &bus->cur_read, rd_new;
  27. u8 head_read = 0;
  28. - brcmf_dbg(TRACE, "Enter\n");
  29. + brcmf_dbg(SDIO, "Enter\n");
  30. /* Not finished unless we encounter no more frames indication */
  31. bus->rxpending = true;
  32. @@ -2344,7 +2344,7 @@ static int brcmf_sdio_tx_ctrlframe(struc
  33. struct brcmf_sdio_hdrinfo hd_info = {0};
  34. int ret;
  35. - brcmf_dbg(TRACE, "Enter\n");
  36. + brcmf_dbg(SDIO, "Enter\n");
  37. /* Back the pointer to make room for bus header */
  38. frame -= bus->tx_hdrlen;
  39. @@ -2520,7 +2520,7 @@ static void brcmf_sdio_dpc(struct brcmf_
  40. uint framecnt; /* Temporary counter of tx/rx frames */
  41. int err = 0;
  42. - brcmf_dbg(TRACE, "Enter\n");
  43. + brcmf_dbg(SDIO, "Enter\n");
  44. sdio_claim_host(bus->sdiodev->func1);
  45. @@ -2605,7 +2605,7 @@ static void brcmf_sdio_dpc(struct brcmf_
  46. /* Would be active due to wake-wlan in gSPI */
  47. if (intstatus & I_CHIPACTIVE) {
  48. - brcmf_dbg(INFO, "Dongle reports CHIPACTIVE\n");
  49. + brcmf_dbg(SDIO, "Dongle reports CHIPACTIVE\n");
  50. intstatus &= ~I_CHIPACTIVE;
  51. }