From: Hauke Mehrtens Date: Thu, 4 Sep 2025 22:34:45 +0000 (+0200) Subject: lantiq: Fix VPE kernel patch X-Git-Tag: v24.10.3~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78763b7b84b1ec128d99bd5a8c7982e874cb9679;p=thirdparty%2Fopenwrt.git lantiq: Fix VPE kernel patch This fixes compilation of the vmmc driver, it uses these functions. Fixes: c676281e7e26 ("kernel: bump 6.6 to 6.6.103") Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch b/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch index 3d0d3f18ae7..eeb9d9fc23e 100644 --- a/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch +++ b/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch @@ -49,6 +49,21 @@ Signed-off-by: Stefan Koch #define read_vpe_c0_count() mftc0(9, 0) #define write_vpe_c0_count(val) mttc0(9, 0, val) #define read_vpe_c0_status() mftc0(12, 0) +--- a/arch/mips/include/asm/vpe.h ++++ b/arch/mips/include/asm/vpe.h +@@ -127,4 +127,12 @@ int vpe_stop(void *vpe); + int vpe_free(void *vpe); + #endif /* CONFIG_MIPS_VPE_LOADER_MT */ + ++/* For the explanation of the APIs please refer the section "MT APRP Kernel ++ * Programming" in AR9 SW Architecture Specification ++ */ ++int32_t vpe1_sw_start(void *sw_start_addr, uint32_t tcmask, uint32_t flags); ++int32_t vpe1_sw_stop(uint32_t flags); ++uint32_t vpe1_get_load_addr(uint32_t flags); ++uint32_t vpe1_get_max_mem(uint32_t flags); ++ + #endif /* _ASM_VPE_H */ --- a/arch/mips/kernel/vpe-mt.c +++ b/arch/mips/kernel/vpe-mt.c @@ -414,6 +414,8 @@ int __init vpe_module_init(void)