326-v4.14-0003-brcmfmac-Log-chip-id-and-revision.patch 998 B

123456789101112131415161718192021222324252627
  1. From f38966a7ace842afd3a9bf5d0fb56640f49df60c Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Wed, 30 Aug 2017 15:54:49 +0200
  4. Subject: [PATCH] brcmfmac: Log chip id and revision
  5. For debugging some problems, it is useful to know the chip revision
  6. add a brcmf_info message logging this.
  7. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  8. Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  9. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  10. ---
  11. drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 3 +++
  12. 1 file changed, 3 insertions(+)
  13. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
  14. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
  15. @@ -602,6 +602,9 @@ int brcmf_fw_map_chip_to_name(u32 chip,
  16. if ((nvram_name) && (mapping_table[i].nvram))
  17. strlcat(nvram_name, mapping_table[i].nvram, BRCMF_FW_NAME_LEN);
  18. + brcmf_info("using %s for chip %#08x(%d) rev %#08x\n",
  19. + fw_name, chip, chip, chiprev);
  20. +
  21. return 0;
  22. }