[RFC PATCH 5/6] crypto: sa2ul: turn on PKA engine

Daniel Parks danielrparks at ti.com
Mon Aug 8 12:12:54 PDT 2022


The SA2UL driver is responsible for enabling power to its subdevices
before enumerating them. In order to enable the PKA driver, we need to
turn on the power to it here.

Signed-off-by: Daniel Parks <danielrparks at ti.com>
---
 drivers/crypto/sa2ul.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 6957a125b447..f3dfb3e7eea7 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -2428,9 +2428,9 @@ static int sa_ul_probe(struct platform_device *pdev)
 
 	if (!dev_data->match_data->skip_engine_control) {
 		u32 val = SA_EEC_ENCSS_EN | SA_EEC_AUTHSS_EN | SA_EEC_CTXCACH_EN |
 			  SA_EEC_CPPI_PORT_IN_EN | SA_EEC_CPPI_PORT_OUT_EN |
-			  SA_EEC_TRNG_EN;
+			  SA_EEC_TRNG_EN | SA_EEC_PKA_EN;
 
 		writel_relaxed(val, saul_base + SA_ENGINE_ENABLE_CONTROL);
 	}
 
-- 
2.17.1




More information about the linux-arm-kernel mailing list