From patchwork Tue Feb 14 09:16:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hector Martin X-Patchwork-Id: 653682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C2C7C05027 for ; Tue, 14 Feb 2023 09:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbjBNJT3 (ORCPT ); Tue, 14 Feb 2023 04:19:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbjBNJTI (ORCPT ); Tue, 14 Feb 2023 04:19:08 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99EF23C56; Tue, 14 Feb 2023 01:19:06 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sendonly@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id DA0AC41EF0; Tue, 14 Feb 2023 09:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1676366344; bh=E9W07H0pU9Jie9tGq5Ks2FwjxVlRsSqR36Tm5FJo4VI=; h=From:To:Cc:Subject:Date; b=OXDduyGoGZ9dQZ8eoE5aO/TuBUcQ13uIPZ4nIvBxNDaN+oLHLnuYFgvULLtF8Dbrx IO5sH+PBSfNl9ASWwnGfxQsI/lfFiH6iDVbjPrvt0eiPMjGeAOXFokULy7ZIUmuK24 EQB146Xre4N2gJu/1emFCU+JXIb+Eij6hRpTpuzTaLbkzGMoneKkPaEQMmDWYNVujs aFxGseg3NC/JI/JA5PmUiJoHM2u545nT7ccMBSrMy4FVqoYawTmRhYXmp6Mh+gHoBA w6ArlWN5Q2npLuoOvUpjcuAm0nhaPZraKORwRM1fUPjTuBCNNe18JA19SN98p6srGV /mFQbWR8A0kxQ== From: Hector Martin To: Arend van Spriel , Franky Lin , Hante Meuleman , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Sven Peter , Alyssa Rosenzweig , Linus Walleij , asahi@lists.linux.dev, linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Hector Martin Subject: [PATCH 00/10] BCM4387 / Apple M1 platform support Date: Tue, 14 Feb 2023 18:16:51 +0900 Message-Id: <20230214091651.10178-1-marcan@marcan.st> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi all, This series adds the missing bits to support the BCM4387 found in newer Apple Silicon platforms and its Apple firmware. * Patches 1-2 add support for hardware oddities of these chips. * Patches 3-6 add support for firmware oddities of these chips. * Patch 7 adds the IDs themselves * Patches 8-10 add support for Apple oddities (also applicable to other chips already upstreamed, but which are still missing this functionality). These patches were already reviewed last year as part of v2 of the `brcmfmac: Support Apple T2 and M1 platforms` series. This version just incorporates a few bits of review feedback from that last round, plus rebasing. In particular, I checked that the patches do not introduce any cfg80211.c endiannness warnings with make C=2. Hector Martin (10): brcmfmac: chip: Only disable D11 cores; handle an arbitrary number brcmfmac: chip: Handle 1024-unit sizes for TCM blocks brcmfmac: cfg80211: Add support for scan params v2 brcmfmac: feature: Add support for setting feats based on WLC version brcmfmac: cfg80211: Add support for PMKID_V3 operations brcmfmac: cfg80211: Pass the PMK in binary instead of hex brcmfmac: pcie: Add IDs/properties for BCM4387 brcmfmac: common: Add support for downloading TxCap blobs brcmfmac: pcie: Load and provide TxCap blobs brcmfmac: common: Add support for external calibration blobs .../broadcom/brcm80211/brcmfmac/bus.h | 1 + .../broadcom/brcm80211/brcmfmac/cfg80211.c | 310 ++++++++++++------ .../broadcom/brcm80211/brcmfmac/chip.c | 25 +- .../broadcom/brcm80211/brcmfmac/common.c | 117 +++++-- .../broadcom/brcm80211/brcmfmac/common.h | 2 + .../broadcom/brcm80211/brcmfmac/feature.c | 49 +++ .../broadcom/brcm80211/brcmfmac/feature.h | 6 +- .../broadcom/brcm80211/brcmfmac/fwil_types.h | 157 ++++++++- .../wireless/broadcom/brcm80211/brcmfmac/of.c | 7 + .../broadcom/brcm80211/brcmfmac/pcie.c | 21 ++ .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 11 files changed, 567 insertions(+), 130 deletions(-)