Skip to content

Commit 1958f62

Browse files
committed
armL crypto: revert add crypto extension features check
1 parent b9a046b commit 1958f62

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

arch/arm/crypto/sha1-ce-glue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ static struct digest_algo m = {
8888

8989
static int sha1_ce_mod_init(void)
9090
{
91-
uint64_t isar0;
92-
93-
asm volatile("mrs %0, ID_AA64ISAR0_EL1" : "=r"(isar0));
94-
if (!(isar0 & 0xF00))
95-
return -EOPNOTSUPP;
96-
9791
return digest_algo_register(&m);
9892
}
9993
coredevice_initcall(sha1_ce_mod_init);

arch/arm/crypto/sha2-ce-glue.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ static struct digest_algo sha256 = {
116116

117117
static int sha256_ce_digest_register(void)
118118
{
119-
uint64_t isar0;
120-
121-
asm volatile("mrs %0, ID_AA64ISAR0_EL1" : "=r"(isar0));
122-
if (!(isar0 & 0xF000))
123-
return -EOPNOTSUPP;
124119

125120
return digest_algo_register(&sha256);
126121
}

0 commit comments

Comments
 (0)