platform: msm8952: Don't asynchronously reset CE
Crypto BAM is initialized by TZ, doing a GCC_CRYPTO_BCR reset which
will reset CRYPTO_BAM that means all TZ side BAM initialization is
all reset. The device will stuck at bam_wait_for_interrupt.
Change-Id: Ia19a5c5ff9a80f18431d839744022603d004ba46
diff --git a/platform/msm8952/acpuclock.c b/platform/msm8952/acpuclock.c
index 57e4d0c..9efe09b 100644
--- a/platform/msm8952/acpuclock.c
+++ b/platform/msm8952/acpuclock.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, 2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015, 2018-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -418,22 +418,6 @@
}
}
-/* Function to asynchronously reset CE.
- * Function assumes that all the CE clocks are off.
- */
-static void ce_async_reset(uint8_t instance)
-{
- /* Start the block reset for CE */
- writel(1, GCC_CRYPTO_BCR);
-
- udelay(2);
-
- /* Take CE block out of reset */
- writel(0, GCC_CRYPTO_BCR);
-
- udelay(2);
-}
-
void clock_ce_enable(uint8_t instance)
{
int ret;
@@ -521,7 +505,5 @@
clock_ce_disable(instance);
- ce_async_reset(instance);
-
clock_ce_enable(instance);
}