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