Remove legacy hack patch, switch mt7621 crypto node to the intended
Safexcel insecure EIP93 compatible string and simplify crypto module
packaging to use the inside-secure eip93 driver.
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/22871
Signed-off-by: Nick Hainke <vincent@systemli.org>
KCONFIG:= \
CONFIG_CRYPTO_HW=y \
CONFIG_CRYPTO_DEV_EIP93 \
- CONFIG_CRYPTO_DEV_EIP93_AES=y@lt6.18 \
- CONFIG_CRYPTO_DEV_EIP93_DES=y@lt6.18 \
- CONFIG_CRYPTO_DEV_EIP93_AEAD=y@lt6.18 \
CONFIG_CRYPTO_DEV_EIP93_GENERIC_SW_MAX_LEN=256 \
CONFIG_CRYPTO_DEV_EIP93_AES_128_SW_MAX_LEN=512
- FILES:=$(LINUX_DIR)/drivers/crypto/mtk-eip93/crypto-hw-eip93.ko@lt6.18 \
- $(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko@ge6.18
+ FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko
AUTOLOAD:=$(call AutoLoad,09,crypto-hw-eip93)
$(call AddDepends/crypto)
endef
IPSEC offload with authenc(hmac(sha1/sha256), aes/cbc/rfc3686)
endef
-define KernelPackage/crypto-hw-eip93/airoha
- FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko
-endef
-
$(eval $(call KernelPackage,crypto-hw-eip93))
define KernelPackage/crypto-kpp
+++ /dev/null
-From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
-Date: Tue, 13 Jan 2026 10:31:12 +0100
-Subject: [PATCH] crypto: eip93: add mediatek,mtk-eip93 compatible string
-
-Add mediatek,mtk-eip93 compatible string for compatibility
-with kernel 6.12 dts files.
-
-Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
----
-
---- a/drivers/crypto/inside-secure/eip93/eip93-main.c
-+++ b/drivers/crypto/inside-secure/eip93/eip93-main.c
-@@ -489,6 +489,7 @@ static void eip93_crypto_remove(struct p
- }
-
- static const struct of_device_id eip93_crypto_of_match[] = {
-+ { .compatible = "mediatek,mtk-eip93", },
- { .compatible = "inside-secure,safexcel-eip93i", },
- { .compatible = "inside-secure,safexcel-eip93ie", },
- { .compatible = "inside-secure,safexcel-eip93is", },
};
crypto: crypto@1e004000 {
- compatible = "mediatek,mtk-eip93";
+ compatible = "inside-secure,safexcel-eip93ies";
reg = <0x1e004000 0x1000>;
interrupt-parent = <&gic>;