From patchwork Mon Sep 12 09:52:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 12973512 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C16A7C6FA86 for ; Mon, 12 Sep 2022 09:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Kgc2OQO75ug91/d77qnSMc9JYPhBisttAePYcPTSdGc=; b=r3V3LsazghoM4N BFiPooID234YlWwXc+YHQCzwV9IKSYIgv+62s3YVftHogfRf/7gxny6PguWYz//ZGDynYM0zDCYBR wRPJu2Hs9Pl24SwwjFWzqnUP2fKpQXOIp4XkVvziBbB08Vfd2gust5FPma+dur7A5vzo3mJzXVZWh Quoz2N09S1ldGz2l2IqINXD6tKRCVFmdjmCtfFd0FADtymYi7RVesU8nLMvNF636YyFlIzNAfVyEd tyi012/yfyqoOseIT6ElrgNT8ghMXWEm2xPWMUSVzMSexAY0bgXy7aOGiAfd4g3Y0u6hCK7YF5gA5 SCBfRR9pX/wRB9Dbvf7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXg7F-008Qnf-CZ; Mon, 12 Sep 2022 09:52:33 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oXg79-008QjQ-Nh for linux-arm-kernel@lists.infradead.org; Mon, 12 Sep 2022 09:52:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=i7scest9/GRb/SJTIXxI6p7sk+zo39k5Ettiz2gvQT0=; b=tRz4vOR8lAGwAn6YrCx+p6EKSw snonH391ow5yXmrkOBmGvfgdClNw4V5uJ5tywGTSBm3IVVBU2Z/1FsNfS2HhT6U5mhGydyO30vCij zsw438CFRgu2T9drmOt2gnRCME4fBwRo989z9W8rTRcIyLSSQ4m9vkTV6Eplu0wcJSLTpS6hBu56u ii5wo8Zgio3aZ5A7M4kwnAnMnq6dRozl3+6pHPEzUq1IxgNVeB4tn7aE5eFcGk4LoQotp/lnfaM+s l2AtwF5zjBQ9mE4zmpe0j7bHl9Cnngi21ZZWTKvkugRGlXeYeb1Vl1ZnaUxY6fwZc8f2TBh9qHfAJ HW1Pw7/Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34252) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oXg6o-0001Qx-Bb; Mon, 12 Sep 2022 10:52:06 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oXg6j-00080m-W7; Mon, 12 Sep 2022 10:52:02 +0100 Date: Mon, 12 Sep 2022 10:52:01 +0100 From: "Russell King (Oracle)" To: Arend van Spriel , Franky Lin , Hante Meuleman Cc: Alyssa Rosenzweig , asahi@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, "David S. Miller" , devicetree@vger.kernel.org, Eric Dumazet , Hector Martin , Jakub Kicinski , Kalle Valo , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Paolo Abeni , =?utf-8?b?UmFmYcWC?= =?utf-8?b?IE1pxYJlY2tp?= , Rob Herring , SHA-cyfmac-dev-list@infineon.com, Sven Peter , van Spriel Subject: [PATCH wireless-next v2 0/12] Add support for bcm4378 on Apple platforms Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220912_025227_874256_34FEFFA3 X-CRM114-Status: GOOD ( 13.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series adds support for bcm4378 found on Apple platforms, and has been tested on the Apple Mac Mini. It is a re-posting of a subset of Hector's previous 38 patch series, and it is believed that the comments from that review were addressed. (I'm just the middle man; please don't complain if something has been missed.) v2: - sending for wireless-next - fixed up %ld -> %zd for size_t - added reviewed-bys arch/arm64/boot/dts/apple/t8103-j274.dts | 4 + arch/arm64/boot/dts/apple/t8103-j293.dts | 4 + arch/arm64/boot/dts/apple/t8103-j313.dts | 4 + arch/arm64/boot/dts/apple/t8103-j456.dts | 4 + arch/arm64/boot/dts/apple/t8103-j457.dts | 4 + arch/arm64/boot/dts/apple/t8103-jxxx.dtsi | 2 + .../net/wireless/broadcom/brcm80211/brcmfmac/bus.h | 19 +- .../wireless/broadcom/brcm80211/brcmfmac/chip.c | 2 + .../wireless/broadcom/brcm80211/brcmfmac/common.c | 12 +- .../wireless/broadcom/brcm80211/brcmfmac/common.h | 1 + .../broadcom/brcm80211/brcmfmac/firmware.c | 115 ++++-- .../broadcom/brcm80211/brcmfmac/firmware.h | 4 +- .../wireless/broadcom/brcm80211/brcmfmac/msgbuf.h | 4 +- .../net/wireless/broadcom/brcm80211/brcmfmac/of.c | 12 +- .../wireless/broadcom/brcm80211/brcmfmac/pcie.c | 431 +++++++++++++++++++-- .../wireless/broadcom/brcm80211/brcmfmac/sdio.c | 38 +- .../wireless/broadcom/brcm80211/brcmfmac/sdio.h | 2 + .../net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 23 +- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + include/linux/bcma/bcma_driver_chipcommon.h | 1 + 21 files changed, 610 insertions(+), 117 deletions(-)