brcmfmac: Log chip id and revision
authorHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2017 13:54:49 +0000 (15:54 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 31 Aug 2017 12:58:39 +0000 (15:58 +0300)
For debugging some problems, it is useful to know the chip revision
add a brcmf_info message logging this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c

index d231042..091b529 100644 (file)
@@ -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;
 }