-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Redecorating/feat/OTP
Take WiFi patches from Asahi Linux to read OTP
- Loading branch information
Showing
37 changed files
with
4,184 additions
and
992 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
8001-brcmfmac-pcie-Declare-missing-firmware-files-in-pcie.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
From 3f43bc112ea442739258e2c6b143408c7c45e2e9 Mon Sep 17 00:00:00 2001 | ||
From: Hector Martin <marcan@marcan.st> | ||
Date: Tue, 21 Dec 2021 19:32:16 +0900 | ||
Subject: [PATCH 01/34] brcmfmac: pcie: Declare missing firmware files in | ||
pcie.c | ||
|
||
Move one of the declarations from sdio.c to pcie.c, since it makes no | ||
sense in the former (SDIO support is optional), and add missing ones. | ||
|
||
Signed-off-by: Hector Martin <marcan@marcan.st> | ||
Fixes: 75729e110e68 ("brcmfmac: expose firmware config files through modinfo") | ||
--- | ||
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 7 +++++++ | ||
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 - | ||
2 files changed, 7 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | ||
index 8b149996f..aed49416c 100644 | ||
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | ||
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | ||
@@ -59,6 +59,13 @@ BRCMF_FW_DEF(4366B, "brcmfmac4366b-pcie"); | ||
BRCMF_FW_DEF(4366C, "brcmfmac4366c-pcie"); | ||
BRCMF_FW_DEF(4371, "brcmfmac4371-pcie"); | ||
|
||
+/* firmware config files */ | ||
+MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.txt"); | ||
+MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.*.txt"); | ||
+ | ||
+/* per-board firmware binaries */ | ||
+MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.*.bin"); | ||
+ | ||
static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = { | ||
BRCMF_FW_ENTRY(BRCM_CC_43602_CHIP_ID, 0xFFFFFFFF, 43602), | ||
BRCMF_FW_ENTRY(BRCM_CC_43465_CHIP_ID, 0xFFFFFFF0, 4366C), | ||
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | ||
index 8effeb7a7..5d156e591 100644 | ||
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | ||
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | ||
@@ -629,7 +629,6 @@ BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-sdio"); | ||
|
||
/* firmware config files */ | ||
MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-sdio.*.txt"); | ||
-MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-pcie.*.txt"); | ||
|
||
/* per-board firmware binaries */ | ||
MODULE_FIRMWARE(BRCMF_FW_DEFAULT_PATH "brcmfmac*-sdio.*.bin"); | ||
-- | ||
2.25.1 | ||
|
Oops, something went wrong.