Use __sec_set_jr_context_normal() to set job-ring ownership rather than the current in-line array walk.
Signed-off-by: Bryan O'Donoghue <bryan.odonog...@linaro.org> --- drivers/crypto/fsl/jr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 7b13aa4a61..65982b8369 100644 --- a/drivers/crypto/fsl/jr.c +++ b/drivers/crypto/fsl/jr.c @@ -616,7 +616,6 @@ int sec_init_idx(uint8_t sec_idx) { ccsr_sec_t *sec = (void *)SEC_ADDR(sec_idx); uint32_t mcr = sec_in32(&sec->mcfgr); - uint32_t jrown_ns; int i; int ret = 0; @@ -674,11 +673,7 @@ int sec_init_idx(uint8_t sec_idx) #endif /* Set ownership of job rings to non-TrustZone mode by default */ - for (i = 0; i < ARRAY_SIZE(sec->jrliodnr); i++) { - jrown_ns = sec_in32(&sec->jrliodnr[i].ms); - jrown_ns |= JROWN_NS | JRMID_NS; - sec_out32(&sec->jrliodnr[i].ms, jrown_ns); - } + __sec_set_jr_context_normal(sec_idx); ret = jr_init(sec_idx); if (ret < 0) { -- 2.20.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot