summarylogtreecommitdiffstats
path: root/sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch')
-rw-r--r--sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch b/sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch
deleted file mode 100644
index 5e540d38cf47..000000000000
--- a/sys-kernel_arch-sources-g14_files-8012-mt76-mt7921-continue-to-probe-driver-when-fw-already.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 8a236b7058af9c559a5c4b8443054a6d5908afaf Mon Sep 17 00:00:00 2001
-From: Aaron Ma <aaron.ma@canonical.com>
-Date: Thu, 8 Jul 2021 21:17:10 +0800
-Subject: [PATCH 8012/8014] mt76: mt7921: continue to probe driver when fw
- already downloaded
-
-When reboot system, no power cycles, firmware is already downloaded,
-return -EIO will break driver as error:
-mt7921e: probe of 0000:03:00.0 failed with error -5
-
-Skip firmware download and continue to probe.
-
-Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
----
- drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
-index 67dc4b4cc094..f7459ad2a073 100644
---- a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
-+++ b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
-@@ -910,7 +910,7 @@ static int mt7921_load_firmware(struct mt7921_dev *dev)
- ret = mt76_get_field(dev, MT_CONN_ON_MISC, MT_TOP_MISC2_FW_N9_RDY);
- if (ret) {
- dev_dbg(dev->mt76.dev, "Firmware is already download\n");
-- return -EIO;
-+ goto fw_loaded;
- }
-
- ret = mt7921_load_patch(dev);
-@@ -928,6 +928,7 @@ static int mt7921_load_firmware(struct mt7921_dev *dev)
- return -EIO;
- }
-
-+fw_loaded:
- mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[MT_MCUQ_FWDL], false);
-
- #ifdef CONFIG_PM
---
-2.32.0
-