[openwrt/openwrt] ramips: hsdma-mtk: fix build on 5.15 kernel

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 11 01:40:01 PST 2024


nick pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/00586674e4aa2e1a7124cca08d0b29cfbfd10c78

commit 00586674e4aa2e1a7124cca08d0b29cfbfd10c78
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Feb 11 11:50:32 2024 +0800

    ramips: hsdma-mtk: fix build on 5.15 kernel
    
    In the 5.15 kernel, we use the staging driver version instead of the
    downstream file.
    
    Fixes: 88d982e3bd87 ("ramips: 6.1: mt7621-dma: add hsdma driver to files")
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
 target/linux/ramips/modules.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk
index 429bb2cd26..4a8739fe5c 100644
--- a/target/linux/ramips/modules.mk
+++ b/target/linux/ramips/modules.mk
@@ -101,7 +101,8 @@ define KernelPackage/hsdma-mtk
 	CONFIG_MTK_HSDMA
   FILES:= \
 	$(LINUX_DIR)/drivers/dma/virt-dma.ko \
-	$(LINUX_DIR)/drivers/dma/mediatek/hsdma-mt7621.ko
+	$(LINUX_DIR)/drivers/staging/mt7621-dma/hsdma-mt7621.ko at lt5.17 \
+	$(LINUX_DIR)/drivers/dma/mediatek/hsdma-mt7621.ko at ge5.17
   AUTOLOAD:=$(call AutoLoad,53,hsdma-mt7621)
 endef
 




More information about the lede-commits mailing list