diff options
author | Arend van Spriel <arend@broadcom.com> | 2014-11-25 14:55:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-12-01 15:57:20 -0500 |
commit | 4cc2fa0036530fcd07446ab1ba690c9c23fe603d (patch) | |
tree | e0bac827b1de5e51650fd06cf568aa794cff4271 | |
parent | 56f0b750fca748b8d13c883d9e947178f3d0162c (diff) |
brcmsmac: extend hardware info shown in debugfs
The hardware info now also include radio and phy information, which
can be helpful in debugging issues.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/debug.c | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/debug.c b/drivers/net/wireless/brcm80211/brcmsmac/debug.c index 19740c1b1566..c9a8b9360ab1 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/debug.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/debug.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "main.h" | 30 | #include "main.h" |
31 | #include "debug.h" | 31 | #include "debug.h" |
32 | #include "brcms_trace_events.h" | 32 | #include "brcms_trace_events.h" |
33 | #include "phy/phy_int.h" | ||
33 | 34 | ||
34 | static struct dentry *root_folder; | 35 | static struct dentry *root_folder; |
35 | 36 | ||
@@ -74,20 +75,33 @@ static | |||
74 | int brcms_debugfs_hardware_read(struct seq_file *s, void *data) | 75 | int brcms_debugfs_hardware_read(struct seq_file *s, void *data) |
75 | { | 76 | { |
76 | struct brcms_pub *drvr = s->private; | 77 | struct brcms_pub *drvr = s->private; |
78 | struct brcms_hardware *hw = drvr->wlc->hw; | ||
79 | struct bcma_device *core = hw->d11core; | ||
80 | struct bcma_bus *bus = core->bus; | ||
81 | char boardrev[10]; | ||
77 | 82 | ||
78 | seq_printf(s, "board vendor: %x\n" | 83 | seq_printf(s, "chipnum 0x%x\n" |
79 | "board type: %x\n" | 84 | "chiprev 0x%x\n" |
80 | "board revision: %x\n" | 85 | "chippackage 0x%x\n" |
81 | "board flags: %x\n" | 86 | "corerev 0x%x\n" |
82 | "board flags2: %x\n" | 87 | "boardid 0x%x\n" |
83 | "firmware revision: %x\n", | 88 | "boardvendor 0x%x\n" |
84 | drvr->wlc->hw->d11core->bus->boardinfo.vendor, | 89 | "boardrev %s\n" |
85 | drvr->wlc->hw->d11core->bus->boardinfo.type, | 90 | "boardflags 0x%x\n" |
86 | drvr->wlc->hw->boardrev, | 91 | "boardflags2 0x%x\n" |
87 | drvr->wlc->hw->boardflags, | 92 | "ucoderev 0x%x\n" |
88 | drvr->wlc->hw->boardflags2, | 93 | "radiorev 0x%x\n" |
89 | drvr->wlc->ucode_rev); | 94 | "phytype 0x%x\n" |
90 | 95 | "phyrev 0x%x\n" | |
96 | "anarev 0x%x\n" | ||
97 | "nvramrev %d\n", | ||
98 | bus->chipinfo.id, bus->chipinfo.rev, bus->chipinfo.pkg, | ||
99 | core->id.rev, bus->boardinfo.type, bus->boardinfo.vendor, | ||
100 | brcmu_boardrev_str(hw->boardrev, boardrev), | ||
101 | drvr->wlc->hw->boardflags, drvr->wlc->hw->boardflags2, | ||
102 | drvr->wlc->ucode_rev, hw->band->radiorev, | ||
103 | hw->band->phytype, hw->band->phyrev, hw->band->pi->ana_rev, | ||
104 | hw->sromrev); | ||
91 | return 0; | 105 | return 0; |
92 | } | 106 | } |
93 | 107 | ||