diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2012-11-15 09:08:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-20 14:06:57 -0500 |
commit | 229a41d9d0d27e9570a18444e6435164b8807c75 (patch) | |
tree | 390317aed92d7e036ce49152df87c1df42c30c83 | |
parent | 5ce58bb5f95c75b6966a9dc1f91992797f3c2286 (diff) |
brcmsmac: Add brcms_dbg_int() debug macro
Also convert relevant message to use this macro.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/debug.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/include/defs.h | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/debug.h b/drivers/net/wireless/brcm80211/brcmsmac/debug.h index b9791288ec37..1114833464cd 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/debug.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/debug.h | |||
@@ -39,5 +39,6 @@ static inline void __brcms_dbg(struct device *dev, u32 level, | |||
39 | #define brcms_dbg_mac80211(core, f, a...) brcms_dbg(core, BRCM_DL_MAC80211, f, ##a) | 39 | #define brcms_dbg_mac80211(core, f, a...) brcms_dbg(core, BRCM_DL_MAC80211, f, ##a) |
40 | #define brcms_dbg_rx(core, f, a...) brcms_dbg(core, BRCM_DL_RX, f, ##a) | 40 | #define brcms_dbg_rx(core, f, a...) brcms_dbg(core, BRCM_DL_RX, f, ##a) |
41 | #define brcms_dbg_tx(core, f, a...) brcms_dbg(core, BRCM_DL_TX, f, ##a) | 41 | #define brcms_dbg_tx(core, f, a...) brcms_dbg(core, BRCM_DL_TX, f, ##a) |
42 | #define brcms_dbg_int(core, f, a...) brcms_dbg(core, BRCM_DL_INT, f, ##a) | ||
42 | 43 | ||
43 | #endif /* _BRCMS_DEBUG_H_ */ | 44 | #endif /* _BRCMS_DEBUG_H_ */ |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 304ad55d3809..bfd796e69a81 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c | |||
@@ -2343,8 +2343,8 @@ static void brcms_b_fifoerrors(struct brcms_hardware *wlc_hw) | |||
2343 | if (!intstatus) | 2343 | if (!intstatus) |
2344 | continue; | 2344 | continue; |
2345 | 2345 | ||
2346 | BCMMSG(wlc_hw->wlc->wiphy, "wl%d: intstatus%d 0x%x\n", | 2346 | brcms_dbg_int(core, "wl%d: intstatus%d 0x%x\n", |
2347 | unit, idx, intstatus); | 2347 | unit, idx, intstatus); |
2348 | 2348 | ||
2349 | if (intstatus & I_RO) { | 2349 | if (intstatus & I_RO) { |
2350 | brcms_err(core, "wl%d: fifo %d: receive fifo " | 2350 | brcms_err(core, "wl%d: fifo %d: receive fifo " |
@@ -2541,8 +2541,8 @@ static inline u32 wlc_intstatus(struct brcms_c_info *wlc, bool in_isr) | |||
2541 | /* macintstatus includes a DMA interrupt summary bit */ | 2541 | /* macintstatus includes a DMA interrupt summary bit */ |
2542 | macintstatus = bcma_read32(core, D11REGOFFS(macintstatus)); | 2542 | macintstatus = bcma_read32(core, D11REGOFFS(macintstatus)); |
2543 | 2543 | ||
2544 | BCMMSG(wlc->wiphy, "wl%d: macintstatus: 0x%x\n", wlc_hw->unit, | 2544 | brcms_dbg_int(core, "wl%d: macintstatus: 0x%x\n", wlc_hw->unit, |
2545 | macintstatus); | 2545 | macintstatus); |
2546 | 2546 | ||
2547 | /* detect cardbus removed, in power down(suspend) and in reset */ | 2547 | /* detect cardbus removed, in power down(suspend) and in reset */ |
2548 | if (brcms_deviceremoved(wlc)) | 2548 | if (brcms_deviceremoved(wlc)) |
@@ -7950,8 +7950,8 @@ bool brcms_c_dpc(struct brcms_c_info *wlc, bool bounded) | |||
7950 | macintstatus = wlc->macintstatus; | 7950 | macintstatus = wlc->macintstatus; |
7951 | wlc->macintstatus = 0; | 7951 | wlc->macintstatus = 0; |
7952 | 7952 | ||
7953 | BCMMSG(wlc->wiphy, "wl%d: macintstatus 0x%x\n", | 7953 | brcms_dbg_int(core, "wl%d: macintstatus 0x%x\n", |
7954 | wlc_hw->unit, macintstatus); | 7954 | wlc_hw->unit, macintstatus); |
7955 | 7955 | ||
7956 | WARN_ON(macintstatus & MI_PRQ); /* PRQ Interrupt in non-MBSS */ | 7956 | WARN_ON(macintstatus & MI_PRQ); /* PRQ Interrupt in non-MBSS */ |
7957 | 7957 | ||
diff --git a/drivers/net/wireless/brcm80211/include/defs.h b/drivers/net/wireless/brcm80211/include/defs.h index 9206d2c36831..12dd33fb985f 100644 --- a/drivers/net/wireless/brcm80211/include/defs.h +++ b/drivers/net/wireless/brcm80211/include/defs.h | |||
@@ -83,6 +83,7 @@ | |||
83 | #define BRCM_DL_MAC80211 0x00000002 | 83 | #define BRCM_DL_MAC80211 0x00000002 |
84 | #define BRCM_DL_RX 0x00000004 | 84 | #define BRCM_DL_RX 0x00000004 |
85 | #define BRCM_DL_TX 0x00000008 | 85 | #define BRCM_DL_TX 0x00000008 |
86 | #define BRCM_DL_INT 0x00000010 | ||
86 | 87 | ||
87 | #define PM_OFF 0 | 88 | #define PM_OFF 0 |
88 | #define PM_MAX 1 | 89 | #define PM_MAX 1 |