1 From a250c91c1762e85c736e67cb4a9a95ebae72e62d Mon Sep 17 00:00:00 2001
2 From: Arend van Spriel <arend.vanspriel@broadcom.com>
3 Date: Thu, 14 Feb 2019 13:43:52 +0100
4 Subject: [PATCH] brcmfmac: use chipname in brcmf_fw_alloc_request() for error
7 The local variable chipname is string representation of chip id and revision
8 which is printed in the good flow of brcmf_fw_alloc_request(). Also use it
9 for the error path, ie. for unknown/unsupported devices.
11 Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
12 Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
13 Reviewed-by: Franky Lin <franky.lin@broadcom.com>
14 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
15 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
17 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 6 +++---
18 1 file changed, 3 insertions(+), 3 deletions(-)
20 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
21 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
22 @@ -719,8 +719,10 @@ brcmf_fw_alloc_request(u32 chip, u32 chi
26 + brcmf_chip_name(chip, chiprev, chipname, sizeof(chipname));
28 if (i == table_size) {
29 - brcmf_err("Unknown chipid %d [%d]\n", chip, chiprev);
30 + brcmf_err("Unknown chip %s\n", chipname);
34 @@ -729,8 +731,6 @@ brcmf_fw_alloc_request(u32 chip, u32 chi
38 - brcmf_chip_name(chip, chiprev, chipname, sizeof(chipname));
40 brcmf_info("using %s for chip %s\n",
41 mapping_table[i].fw_base, chipname);