Skip to content

Commit 54cb211

Browse files
namiltdPolynomialDivision
authored andcommitted
ramips: remove hack and use safexcel-eip93ies
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: openwrt/openwrt#22871 Signed-off-by: Nick Hainke <vincent@systemli.org>
1 parent 4743017 commit 54cb211

3 files changed

Lines changed: 2 additions & 30 deletions

File tree

package/kernel/linux/modules/crypto.mk

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -532,13 +532,9 @@ define KernelPackage/crypto-hw-eip93
532532
KCONFIG:= \
533533
CONFIG_CRYPTO_HW=y \
534534
CONFIG_CRYPTO_DEV_EIP93 \
535-
CONFIG_CRYPTO_DEV_EIP93_AES=y@lt6.18 \
536-
CONFIG_CRYPTO_DEV_EIP93_DES=y@lt6.18 \
537-
CONFIG_CRYPTO_DEV_EIP93_AEAD=y@lt6.18 \
538535
CONFIG_CRYPTO_DEV_EIP93_GENERIC_SW_MAX_LEN=256 \
539536
CONFIG_CRYPTO_DEV_EIP93_AES_128_SW_MAX_LEN=512
540-
FILES:=$(LINUX_DIR)/drivers/crypto/mtk-eip93/crypto-hw-eip93.ko@lt6.18 \
541-
$(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko@ge6.18
537+
FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko
542538
AUTOLOAD:=$(call AutoLoad,09,crypto-hw-eip93)
543539
$(call AddDepends/crypto)
544540
endef
@@ -550,10 +546,6 @@ It enables DES/3DES/AES ECB/CBC/CTR and
550546
IPSEC offload with authenc(hmac(sha1/sha256), aes/cbc/rfc3686)
551547
endef
552548

553-
define KernelPackage/crypto-hw-eip93/airoha
554-
FILES:=$(LINUX_DIR)/drivers/crypto/inside-secure/eip93/crypto-hw-eip93.ko
555-
endef
556-
557549
$(eval $(call KernelPackage,crypto-hw-eip93))
558550

559551
define KernelPackage/crypto-kpp

target/linux/generic/hack-6.18/927-crypto-eip93-add-mediatek-mtk-eip93-compatible-string.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.

target/linux/ramips/dts/mt7621.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
};
494494

495495
crypto: crypto@1e004000 {
496-
compatible = "mediatek,mtk-eip93";
496+
compatible = "inside-secure,safexcel-eip93ies";
497497
reg = <0x1e004000 0x1000>;
498498

499499
interrupt-parent = <&gic>;

0 commit comments

Comments
 (0)