From cfe9ae0d7f287379b255e243813ac736aa4a2ba5 Mon Sep 17 00:00:00 2001
From: Markus Gothe <markus.gothe@genexis.eu>
Date: Thu, 6 Mar 2025 11:12:38 +0100
Subject: [PATCH] an7581: Disable CONFIG_KEYS.

Otherwise the VoiP stack will not work
becuase of different offsets in 'struct task_struct'.

This is a temporary solution until we get the
correct binaries from Airoha.
---
 airoha/Config.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/airoha/Config.in b/airoha/Config.in
index f56c9f373..1a46b3a1e 100644
--- a/airoha/Config.in
+++ b/airoha/Config.in
@@ -8,6 +8,11 @@ if TARGET_airoha
 	config KERNEL_GIT_MIRROR_HASH
 		default "e76032cce99c247d73bae1b67bc7a1de58a8a3def4c6f2426f322ad062b608de"
 
+# Kernel access key retention support
+	config KERNEL_KEYS
+		default n if TARGET_airoha_an7581
+		default y if TARGET_airoha_en7523
+
 # Kernel Debug
 	config KERNEL_DEVMEM
 		default y
-- 
GitLab