[openwrt/openwrt] generic: mtk_wed: fix path of MT7988 WO firmware

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 26 07:21:48 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b6c2422448927e292e4725c796bb62061f22dafa

commit b6c2422448927e292e4725c796bb62061f22dafa
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Oct 26 15:18:50 2024 +0100

    generic: mtk_wed: fix path of MT7988 WO firmware
    
    commit eee3c695f3 ("linux-firmware: add offloading firmware for MT7988")
    added mt7988_wo_{0,1}.bin in the 'mediatek/mt7988' directory while driver
    currently expects the files in the 'mediatek' directory.
    
    Import pending patch which changes the path in the driver header now
    that the firmware has been added.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 ...et-mtk_wed-fix-path-of-MT7988-WO-firmware.patch | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/target/linux/generic/pending-6.6/736-net-ethernet-mtk_wed-fix-path-of-MT7988-WO-firmware.patch b/target/linux/generic/pending-6.6/736-net-ethernet-mtk_wed-fix-path-of-MT7988-WO-firmware.patch
new file mode 100644
index 0000000000..c82f3512c6
--- /dev/null
+++ b/target/linux/generic/pending-6.6/736-net-ethernet-mtk_wed-fix-path-of-MT7988-WO-firmware.patch
@@ -0,0 +1,59 @@
+From patchwork Sat Oct 26 13:52:25 2024
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Daniel Golle <daniel at makrotopia.org>
+X-Patchwork-Id: 13852245
+X-Patchwork-Delegate: kuba at kernel.org
+Date: Sat, 26 Oct 2024 14:52:25 +0100
+From: Daniel Golle <daniel at makrotopia.org>
+To: linux-mediatek at lists.infradead.org,
+	linux-arm-kernel at lists.infradead.org, linux-kernel at vger.kernel.org,
+	netdev at vger.kernel.org, Sujuan Chen <sujuan.chen at mediatek.com>,
+	AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>,
+	Matthias Brugger <matthias.bgg at gmail.com>,
+	Paolo Abeni <pabeni at redhat.com>, Jakub Kicinski <kuba at kernel.org>,
+	Eric Dumazet <edumazet at google.com>,
+	"David S. Miller" <davem at davemloft.net>,
+	Andrew Lunn <andrew+netdev at lunn.ch>,
+	Lorenzo Bianconi <lorenzo at kernel.org>,
+	Mark Lee <Mark-MC.Lee at mediatek.com>,
+	Sean Wang <sean.wang at mediatek.com>, Felix Fietkau <nbd at nbd.name>,
+	John Crispin <john at phrozen.org>
+Subject: [PATCH net] net: ethernet: mtk_wed: fix path of MT7988 WO firmware
+Message-ID: <Zxz0GWTR5X5LdWPe at pidgin.makrotopia.org>
+Precedence: bulk
+X-Mailing-List: netdev at vger.kernel.org
+List-Id: <netdev.vger.kernel.org>
+List-Subscribe: <mailto:netdev+subscribe at vger.kernel.org>
+List-Unsubscribe: <mailto:netdev+unsubscribe at vger.kernel.org>
+MIME-Version: 1.0
+Content-Disposition: inline
+X-Patchwork-Delegate: kuba at kernel.org
+
+linux-firmware commit 808cba84 ("mtk_wed: add firmware for mt7988
+Wireless Ethernet Dispatcher") added mt7988_wo_{0,1}.bin in the
+'mediatek/mt7988' directory while driver current expects the files in
+the 'mediatek' directory.
+
+Change path in the driver header now that the firmware has been added.
+
+Fixes: e2f64db13aa1 ("net: ethernet: mtk_wed: introduce WED support for MT7988")
+Signed-off-by: Daniel Golle <daniel at makrotopia.org>
+---
+ drivers/net/ethernet/mediatek/mtk_wed_wo.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/mediatek/mtk_wed_wo.h
++++ b/drivers/net/ethernet/mediatek/mtk_wed_wo.h
+@@ -91,8 +91,8 @@ enum mtk_wed_dummy_cr_idx {
+ #define MT7981_FIRMWARE_WO	"mediatek/mt7981_wo.bin"
+ #define MT7986_FIRMWARE_WO0	"mediatek/mt7986_wo_0.bin"
+ #define MT7986_FIRMWARE_WO1	"mediatek/mt7986_wo_1.bin"
+-#define MT7988_FIRMWARE_WO0	"mediatek/mt7988_wo_0.bin"
+-#define MT7988_FIRMWARE_WO1	"mediatek/mt7988_wo_1.bin"
++#define MT7988_FIRMWARE_WO0	"mediatek/mt7988/mt7988_wo_0.bin"
++#define MT7988_FIRMWARE_WO1	"mediatek/mt7988/mt7988_wo_1.bin"
+ 
+ #define MTK_WO_MCU_CFG_LS_BASE				0
+ #define MTK_WO_MCU_CFG_LS_HW_VER_ADDR			(MTK_WO_MCU_CFG_LS_BASE + 0x000)




More information about the lede-commits mailing list