Skip to contentSkip to conversation

brcmfmac: Log chip id and revision

PATCH In review Hans de Goede 3 participants 3 messages Aug 30, 2017 – Aug 31, 2017 Broadcom BRCM80211 IEEE802.11 wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 brcmfmac: Log chip id and revision

For debugging some problems, it is useful to know the chip revision add a brcmf_info message logging this.

---
Changes in v2:
-Put the brcmf_info in brcmf_fw_map_chip_to_name() so that it works for
e.g. pcie devices too

---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c +3 -0
index d231042f19d6..091b52979e03 100644
@@ -601,6 +601,9 @@ int brcmf_fw_map_chip_to_name(u32 chip, u32 chiprev,
 	if ((nvram_name) && (mapping_table[i].nvram))
 		strlcat(nvram_name, mapping_table[i].nvram, BRCMF_FW_NAME_LEN);
 
+	brcmf_info("using %s for chip %#08x(%d) rev %#08x\n",
+		   fw_name, chip, chip, chiprev);
+
 	return 0;
 }
 
Signature · 1 line
2.13.4
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 2 lines · Hans de Goede

For debugging some problems, it is useful to know the chip revision add a brcmf_info message logging this.

Quoted 8 lines

---
Changes in v2:
-Put the brcmf_info in brcmf_fw_map_chip_to_name() so that it works for
e.g. pcie devices too

---
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 3 +++
  1 file changed, 3 insertions(+)
#2 lore raw
In reply to Hans de Goede
Quoted 5 lines · Hans de Goede

For debugging some problems, it is useful to know the chip revision add a brcmf_info message logging this.

Patch applied to wireless-drivers-next.git, thanks.

f38966a7ace8 brcmfmac: Log chip id and revision

Signature · 3 lines
https://patchwork.kernel.org/patch/9929651/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches