Skip to content

Commit a672705

Browse files
ndreysherbertx
authored andcommitted
crypto: caam - always select job ring via RSR on i.MX8MQ
Per feedback from NXP tech support the way to use register based service interface on i.MX8MQ is to follow the same set of steps outlined for the case when virtualization is enabled, regardless if it is. Current version of SRM for i.MX8MQ speaks of DECO DID_MS and DECO DID_LS registers, but apparently those are not implemented, so the case when SCFGR[VIRT_EN]=0 should be handled the same as the case when SCFGR[VIRT_EN]=1 Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Chris Spencer <christopher.spencer@sea.co.uk> Cc: Cory Tusar <cory.tusar@zii.aero> Cc: Chris Healy <cphealy@gmail.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Horia Geantă <horia.geanta@nxp.com> Cc: Aymen Sghaier <aymen.sghaier@nxp.com> Cc: Leonard Crestez <leonard.crestez@nxp.com> Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent a1cf573 commit a672705

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/crypto/caam/ctrl.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,
9797
int i;
9898

9999

100-
if (ctrlpriv->virt_en == 1) {
100+
if (ctrlpriv->virt_en == 1 ||
101+
/*
102+
* Apparently on i.MX8MQ it doesn't matter if virt_en == 1
103+
* and the following steps should be performed regardless
104+
*/
105+
of_machine_is_compatible("fsl,imx8mq")) {
101106
clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);
102107

103108
while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&

0 commit comments

Comments
 (0)