Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1175391rwb; Tue, 29 Nov 2022 09:53:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf42+6vgKFsI50wv10otzIcYY/B2f1Tm3cJFABGUdFu1ns43mb2jPuV6Yk/tBPaK0SlQaq0C X-Received: by 2002:a17:906:2bcb:b0:7b8:4d91:1bcd with SMTP id n11-20020a1709062bcb00b007b84d911bcdmr31379862ejg.239.1669744416861; Tue, 29 Nov 2022 09:53:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669744416; cv=none; d=google.com; s=arc-20160816; b=qjcvXFEjNBW/jMnwdrUqyMGBYgg5l9WRMqVWUT8LELq0FsfOvNoEmztcPbCjegajxO NLwjQIMF+XK8f1gQK3+IPeK0WW2oacR56FrIZmm+dGypx56Enq51otUC/Mx7NXseiKKQ OxfAM1dFddAsNRCAvEAxciX4lwK81KFqj3xCq7GGG3SSVudSRZSns0xCULCemEaYhnPI AULUT7Gb+L/ty7rXfCcXH4wCOsgookcjpji+xh5PEDF9FJMSxhkMLY09kRwzdi4z2BOo AYUC2u8hcRoSasPrVswuzczezF1jjTs591JSMET7feXbF1FOFHVnLHsvTXXXehb+UP87 UeGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4eI+/Eqcu4JROB6q3fsn0VT9621gecUtXts5vWKYo8M=; b=gVc3EWFi3PsIVaaG3Dy+fM4rWsYE0koWrS7pVxNmdgjbr60KYmhPDwHGMEzsklVFwj EhmOCGmZrfyyR8iAUqYCNdMtVMXA3HWSjcAnGICWUPDZGhCHCoR46jgTQFkAycqt58XC jKvYLAKotdNFRZ1jHCym6/LXarDhnJM3VvipC/yJyAiDluErwlLFwT8O9URNaD5N1ycW rZEQxYaMpCJgPKh104b9O6/qsKmzypc2oJM3R9LNgoe47AKJhJ1+p867uAFpqd40EPhf ejQ0TutwEHNejAOUdF/ZAqG3DSrjkl620xAfy1WKukDrDGxibolds5J8wVtTUrMh3y12 uivg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Z517S4RL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a056402279100b0046b4ce24c79si4618101ede.242.2022.11.29.09.53.14; Tue, 29 Nov 2022 09:53:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Z517S4RL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbiK2RmW (ORCPT + 67 others); Tue, 29 Nov 2022 12:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236300AbiK2RmV (ORCPT ); Tue, 29 Nov 2022 12:42:21 -0500 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2984B77C for ; Tue, 29 Nov 2022 09:42:20 -0800 (PST) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-14263779059so17934478fac.1 for ; Tue, 29 Nov 2022 09:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4eI+/Eqcu4JROB6q3fsn0VT9621gecUtXts5vWKYo8M=; b=Z517S4RL3CVGG4bOuspo2qBJxwc/l8/WwVypqvPLEnuByLv8EyRFGql5qK4zZfpXE7 0i8BUDFiIqC1mEZ5xt/rb2+mAOlz1flR6WUN7c2uzJ3bKR3uTpaQrsX3gyU1Id9FxpYJ mG7+nJSryuDHSW+CMAAz8MN4LA5ve+19vYeKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4eI+/Eqcu4JROB6q3fsn0VT9621gecUtXts5vWKYo8M=; b=MHS9AqP1lrd2hPqtviWmC7pR7o/viS8jJ0xVJpMWav0ENaDfbVzoKOS0A/JqbwPmzn X/bYK+6xpp4gdm7mO1XIjPNqyC4YGD9FCTG8/WNPSEwTogRipm3jkBrWAYPR3XdpAZT+ cviklJgsPXzZNwuiwc+jzEXm0A+5Q4eyKDGA/ueSpUgPNpuxtJ+gIFgds5hhSiLpgbeZ KuDGV//wHU+DENvBvOQymlmtL08IyCBuROErMvNSiHS6dXKJXMlanf+uehMhQsEWPquH w6GweMQd+vK83GU8A2MqhTBl0zjbAWBjOviBhYFeOPCSxnBv7AgsO+nM5n7XcpgHpESY 2N9A== X-Gm-Message-State: ANoB5pkkgOozSPG4rqs4pDyeRwomV4Jzcv0yN3PD8vbtRZ+YVGUbNkwU wH3AAnR9jA8riLaBPGcXAIytxk3PusN8kOpAF0yt0Q== X-Received: by 2002:a05:6870:bac9:b0:143:2f33:9c25 with SMTP id js9-20020a056870bac900b001432f339c25mr17280917oab.278.1669743739545; Tue, 29 Nov 2022 09:42:19 -0800 (PST) MIME-Version: 1.0 References: <1669716458-15327-1-git-send-email-wangyufen@huawei.com> In-Reply-To: <1669716458-15327-1-git-send-email-wangyufen@huawei.com> From: Franky Lin Date: Tue, 29 Nov 2022 09:41:53 -0800 Message-ID: Subject: Re: [PATCH] wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware() To: Wang Yufen Cc: aspriel@gmail.com, hante.meuleman@broadcom.com, kvalo@kernel.org, davem@davemloft.net, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, arend@broadcom.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000007a98ba05ee9f82b8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --0000000000007a98ba05ee9f82b8 Content-Type: text/plain; charset="UTF-8" On Tue, Nov 29, 2022 at 1:47 AM Wang Yufen wrote: > > Fix to return a negative error code -EINVAL instead of 0. > > Compile tested only. > > Fixes: d380ebc9b6fb ("brcmfmac: rename chip download functions") > Signed-off-by: Wang Yufen > --- > drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > index 465d95d..329ec8ac 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c > @@ -3414,6 +3414,7 @@ static int brcmf_sdio_download_firmware(struct brcmf_sdio *bus, > /* Take arm out of reset */ > if (!brcmf_chip_set_active(bus->ci, rstvec)) { > brcmf_err("error getting out of ARM core reset\n"); > + bcmerror = -EINVAL; ENODEV seems more appropriate here. > goto err; > } > > -- > 1.8.3.1 > --0000000000007a98ba05ee9f82b8 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQZwYJKoZIhvcNAQcCoIIQWDCCEFQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2+MIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PA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