From b2455219ccb371ea4eb37df3062a473c70b9319d Mon Sep 17 00:00:00 2001 From: Konstantin Kondrashov Date: Wed, 10 Apr 2019 20:49:27 +0800 Subject: [PATCH] esp32/sha: Remove second enabling in esp_sha_lock_engine_common --- components/esp32/hwcrypto/sha.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/esp32/hwcrypto/sha.c b/components/esp32/hwcrypto/sha.c index 422065f9c..7a064340a 100644 --- a/components/esp32/hwcrypto/sha.c +++ b/components/esp32/hwcrypto/sha.c @@ -182,9 +182,6 @@ static bool esp_sha_lock_engine_common(esp_sha_type sha_type, TickType_t ticks_t /* Just locked first engine, so enable SHA hardware */ periph_module_enable(PERIPH_SHA_MODULE); - DPORT_STALL_OTHER_CPU_START(); - ets_sha_enable(); - DPORT_STALL_OTHER_CPU_END(); } engines_in_use++;