Received: by 10.213.65.68 with SMTP id h4csp2117928imn; Sun, 8 Apr 2018 20:09:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx483e0jfFd/PBwlNnnIO4YRUM36tYcN/1yCPJIwzm0zz+oNwaJ1r079BRZVTJwvG4rLn18F2 X-Received: by 10.101.98.72 with SMTP id q8mr23681174pgv.338.1523243346751; Sun, 08 Apr 2018 20:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243346; cv=none; d=google.com; s=arc-20160816; b=kDatWd9LB/1CznwDF8i/6J4NZ2je4Ie71eq5+hp6Q4eoE77bD4ArVOA9OndxSB7Q9S c5rDL/88RG84kirPiyTr4bzL4BobT5KTBjYKYtMWAEByVxQMQbIw57lUsttSVgd3IVba Wtqn6iy0BNdif5erJ9OYtsbxWrVC/EX+IVSJJPZMDE1+Y9nOCMris9b1O5lHSa6Y78oe vVpJl/0vrWxND9gGsruXCHTvmMcYxqqaejyZEr8g1bgZqEKxM/rw3b6QPUqzPKVVREon qakr4PVxM8ZO7HRj+xnqCGBP5eaevk2xIPs6xbc6weY5hHmqMItRrrDNqyZ/7uD0LRfh qEnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=x6dbnEBvgSMlxPksEW579KIrP4VRkkEDRs+gtUtQotw=; b=PehZWRIyA0E9XxDqd95RWCZEV7oKfyxv29bKpRzXoCyyDhM1m8jtfW4olPW36gTfdo xuVmvamUTZBqbcD303AMZoTo/UBO7QiTxvXc+iWnVzNiFQqFdevJxqlNjpVMpzf4YOlo 0u7SgXxQCpioRAi15ZB/d2Mq8XIW/Tm04Rh6gzsO433gypN9Cqcs/A05lmkQwy1f6pJS ZL1XA1OcC2aNscbtlKPKkp0YcLBVOwYBteQGnZbDVC+sQiMwaya3VayIr61GbLjwnyeB RGuEz2fnTKOUGKR/PaWfFtMemQJhGjVKv9FcTVGqFfd6wjBL/RBmqlIKpF6ck6v/T9LH wUlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GbkUTVOW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z69si12022157pfl.209.2018.04.08.20.08.29; Sun, 08 Apr 2018 20:09:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GbkUTVOW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932933AbeDICV2 (ORCPT + 99 others); Sun, 8 Apr 2018 22:21:28 -0400 Received: from mail-sn1nam02on0106.outbound.protection.outlook.com ([104.47.36.106]:7529 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756039AbeDIA3m (ORCPT ); Sun, 8 Apr 2018 20:29:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=x6dbnEBvgSMlxPksEW579KIrP4VRkkEDRs+gtUtQotw=; b=GbkUTVOW2wJ3j/mESz98duFkatBqpbpgRi95h/8M+NMSIyRVr/CJDfdrF7hrsqVzvDJ+HgQ0JEh4kG1kfwDpwqGX+G0NBdJU5TnFKDZCV7P+oDZFTx62LNvGvpvBgVrOA7e55uU+CBMQFnEAFCJQkahTMmz2PwpLVIbT9hJAVzE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:29:39 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:29:39 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Hans de Goede , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 114/293] brcmfmac: Use separate firmware for revision 0 of the brcm43430 chip Thread-Topic: [PATCH AUTOSEL for 4.9 114/293] brcmfmac: Use separate firmware for revision 0 of the brcm43430 chip Thread-Index: AQHTz5kb/7vouQZBhkmbrg0lcnTldA== Date: Mon, 9 Apr 2018 00:24:22 +0000 Message-ID: <20180409002239.163177-114-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1032;7:sxlhy8OR90yHzRevWe3Z8Hzfc4WiGUYTtqg4RyHJRPHM3qJJItj7hT9v7OP4KLK0yItyM5A4ZGMY/upRCwyS4g2wo+2ZyrJXMgKau4nw2E5S1W7Xz2ZNH+EJQTBJksyDDBm/O5CeWOqmxy5+Ib5i2c5T4Qwl2Ls+I1Qa/bLWqqNcmlG3O4kUgEbSw6IlCTOvr3LM2B/z29i0/9xpZC0VPFkCgfYJtHhULcEfr50uyYqkpay9PnyG5GNcztMCiHgA;20:a9cEgiBzIbUJEpUBexn6cxIi+oEEgM+nKUAJdqJfKCd6iGtMFZK1+kzaHu35inqsO9BIvjXJ3CFoh+InavX1dUB+XblahiGdbEzzCmzrFyDwvx7jgKPmla1ohMSxbMBAeStWF0BGLj9QhHilw8un5hO3UxiMiePOywO8fhYJ1a4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 3b2a1161-812c-425d-f745-08d59db0fae2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1032; x-ms-traffictypediagnostic: DM5PR2101MB1032: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231221)(944501327)(52105095)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1032;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1032; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(5660300001)(76176011)(99286004)(10090500001)(2900100001)(105586002)(305945005)(7736002)(107886003)(2501003)(5250100002)(14454004)(53936002)(4326008)(8936002)(68736007)(25786009)(86612001)(3846002)(66066001)(1076002)(486006)(316002)(72206003)(22452003)(106356001)(186003)(97736004)(6436002)(6116002)(476003)(2616005)(478600001)(6486002)(10290500003)(2906002)(110136005)(54906003)(6512007)(81156014)(81166006)(8676002)(36756003)(11346002)(3660700001)(446003)(6666003)(86362001)(26005)(102836004)(3280700002)(6506007)(59450400001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1032;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: zEJq8K9+AmP6LUopGFfZzM2Wy4EK6s2yzd8QTv+5k0FyCWRuPHb6G8VF6ygXXnbRF92Cl/Oh6a/dc0jgPqr6CWLBmPG84AEuhXHXLjuKCo3w25XR2mwQ0d2g2NnAZhjct/S+U6+A5dmQsrmKbRjFN2s9HpYR/fm4rjbOZljTZVQ3gr2CpyRMllwuEVqVOWLOAeT+/NNr5AoNMgVCo8i7NvyRMfCK8LMdeI6aHyvK3zsSamIS0PAguVCcLrfxQfdR4zxJCwcJfJaOmrH33TslnpAsOE/FkYgQ57/chYAsMLqINTnmeqD/VlKV4Bp4baBpWi4M0fuCUyQSaU5dFkMHuxRQgL9ewgNrWYOobtZe0tDfViGHkxwGOwT2SuPVwYvHBBT4qNkuhrTFaHsEusPC8IgmeEOtaSOMliV0j7gRmIs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b2a1161-812c-425d-f745-08d59db0fae2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:24:22.4094 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1032 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 1278bd149839f2281db45a910082ba143546a148 ] The brcm43430 chip needs different firmware files for chip revision 0 and 1. The file currently in linux-firmware is for revision 1 only. This commit makes brcmfmac request brcmfmac43430a0-sdio.bin instead of brcmfmac43430-sdio.bin for revision 0 chips. Note that the behavior for revision 1 chips is not changed, ideally those would load brcmfmac43430a1-sdio.bin, but that will break existing setups. Signed-off-by: Hans de Goede Acked-by: Arend van Spriel Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/driv= ers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index d46f086e6360..3f3b6300bd51 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -607,7 +607,9 @@ BRCMF_FW_NVRAM_DEF(43340, "brcmfmac43340-sdio.bin", "br= cmfmac43340-sdio.txt"); BRCMF_FW_NVRAM_DEF(4335, "brcmfmac4335-sdio.bin", "brcmfmac4335-sdio.txt")= ; BRCMF_FW_NVRAM_DEF(43362, "brcmfmac43362-sdio.bin", "brcmfmac43362-sdio.tx= t"); BRCMF_FW_NVRAM_DEF(4339, "brcmfmac4339-sdio.bin", "brcmfmac4339-sdio.txt")= ; -BRCMF_FW_NVRAM_DEF(43430, "brcmfmac43430-sdio.bin", "brcmfmac43430-sdio.tx= t"); +BRCMF_FW_NVRAM_DEF(43430A0, "brcmfmac43430a0-sdio.bin", "brcmfmac43430a0-s= dio.txt"); +/* Note the names are not postfixed with a1 for backward compatibility */ +BRCMF_FW_NVRAM_DEF(43430A1, "brcmfmac43430-sdio.bin", "brcmfmac43430-sdio.= txt"); BRCMF_FW_NVRAM_DEF(43455, "brcmfmac43455-sdio.bin", "brcmfmac43455-sdio.tx= t"); BRCMF_FW_NVRAM_DEF(4354, "brcmfmac4354-sdio.bin", "brcmfmac4354-sdio.txt")= ; BRCMF_FW_NVRAM_DEF(4356, "brcmfmac4356-sdio.bin", "brcmfmac4356-sdio.txt")= ; @@ -624,7 +626,8 @@ static struct brcmf_firmware_mapping brcmf_sdio_fwnames= [] =3D { BRCMF_FW_NVRAM_ENTRY(BRCM_CC_4335_CHIP_ID, 0xFFFFFFFF, 4335), BRCMF_FW_NVRAM_ENTRY(BRCM_CC_43362_CHIP_ID, 0xFFFFFFFE, 43362), BRCMF_FW_NVRAM_ENTRY(BRCM_CC_4339_CHIP_ID, 0xFFFFFFFF, 4339), - BRCMF_FW_NVRAM_ENTRY(BRCM_CC_43430_CHIP_ID, 0xFFFFFFFF, 43430), + BRCMF_FW_NVRAM_ENTRY(BRCM_CC_43430_CHIP_ID, 0x00000001, 43430A0), + BRCMF_FW_NVRAM_ENTRY(BRCM_CC_43430_CHIP_ID, 0xFFFFFFFE, 43430A1), BRCMF_FW_NVRAM_ENTRY(BRCM_CC_4345_CHIP_ID, 0xFFFFFFC0, 43455), BRCMF_FW_NVRAM_ENTRY(BRCM_CC_4354_CHIP_ID, 0xFFFFFFFF, 4354), BRCMF_FW_NVRAM_ENTRY(BRCM_CC_4356_CHIP_ID, 0xFFFFFFFF, 4356) --=20 2.15.1